Hi all
Im absolutely new to PHP. I have a problem in Form validations. I have a form in main php file called main.php. This form has 3 textfields - Name, city and Telephone. Now on the submit of the form I have given action="validate.php".
In this php file what it does is, it just checks if the Name is filled or not byt this command if ($_post[yourname])=='')
Now what I want is, if the name is empty then the page should go back to the main.php but all the other values which the user have put should be available in the text fields.
Plz help me how to do this.
Regards