Click to See Complete Forum and Search --> : is there a way to...


Sexay_Hamster
11-24-2003, 10:34 PM
make a part of a script not execute until after the submit button is hit... cuz i made my registration script but i need it to not show the incorrect info errors until after they have hit submit... because right now when u go there since nothing has been entered it shows all the errors at the bottom right away... anything i can do?

pyro
11-24-2003, 10:38 PM
If you name your submit button submit, you can use this:if (isset($_POST['submit'])) {
#execute once the submit button has been pushed
}

Sexay_Hamster
11-24-2003, 10:40 PM
oh:eek:

i always had thought isset was just to check for cookies...

thanx pyro :D

pyro
11-24-2003, 10:41 PM
You bet...

When in doubt, check the manual (http://us3.php.net/isset). :)