Hi I'm pretty new to php, Okay what I'm trying to do is, after the user enters an invalid email address, I want him to re-enter the details for it. I know this sounds pretty simple, but I'm having difficulty with this. This is my code so far: //the user enters details <? session_start(); session_register('person_name'); session_register('person_email'); session_register('person_phoneno'); ?> <HTML> <BODY> <FORM method="post" ACTION="CheckWizard1.php"> Contact name:<input type="Text" name="sel_person_name" value=""><br> Contact email:<input type="Text" name="sel_person_email" value=""><br> Contact phoneno:<input type="Text" name="sel_person_phoneno" value=""><br> <input type="Submit" name="submit" value="Details"> </FORM> </BODY> </HTML> ---------------------------------------------------------------------------------------------------------- //Now I will check if the input is valid(in that case go to wizard2.php, if invalid go back to wizard1.php and re-enter details //This is code for CheckWizard1.php <? session_start(); ?> <HTML> <? if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $person_email)) { echo "$person_email is not a valid email"; //go back to wizard1, but I cannot put HTML link here <P>Please go to final Submit<a href="wizard1.php"> now </a>.</p> } ?> //else if everything is valid go post details to wizard2.php <FORM method="post" ACTION="wizard2.php"> Contact name:<input type="Text" name="sel_person_name" value=""><br> Contact email:<input type="Text" name="sel_person_email" value=""><br> Contact phoneno:<input type="Text" name="sel_person_phoneno" value=""><br> <input type="Submit" name="submit" value="Details"> </FORM>