ok on my registration form i have this
<?php if($submit == "registration.php"){ ?> <form method=post action="registration.php"> <input type=submit name="submit" value="Submit"> <INPUT TYPE="reset" VALUE="Reset"> <?php } if($submit == "Thanks for your registration"){ mail ("rays136@cox.net,rx8010@cox.net,scarpelli@gmx.net","$subject","$format"); } ?>
and nothing shows up when i go to my browser why is that
There is possibly a logic error.
Your script does not account for when $submit has not value, or just some other value.
If you are running that script directly, then you need to add some elseifs.
because i made a register form in html n i put that php code in it n it wont show can u write it all out so i can see ok thnx
Here's a link to the webmonkey site that shows a simple self-contained ($PHP_SELF) validation script.
http://hotwired.lycos.com/webmonkey/99/21/index4a_page2.html?tw=programming