PHP Newb, needs help with conditional post

Hey PHP Help community,

I’m a PHP newby and I’m in need of some help!

I used the following code: http://www.brainbell.com/tutorials/php/Checking_Mandatory_Fields.htm
To make a form with mandatory fields, now I want it to post to another PHP page if the fields are filled.
How can I do this?

( I want to add a confirmation page followed by a mail page to the form )

Kind Regards,
Cimtoa

To post form to another page, you need to have form’s action attribute set to that another page URI. You can validate mandatory fields on the initial page with Javascript, and also check if they are not empty in the php code on the another page.

Sponsor our Newsletter | Privacy Policy | Terms of Service