Re: [PHP] Running a script to check something before submitting a form. Can this be done?

2002-05-31 Thread Jim lucas
you will have to do this with javascript on the client side with an onClick() call in the submit button. but the bad thing is, you wont be able to check this with the mysql db, unless you load the entire field set into the current page. my suggestion would be to send the form to one single

Re: [PHP] Running a script to check something before submitting a form. Can this be done?

2002-05-31 Thread Kevin Stone
I wouldn't use header() in this case, unless you plan to create an ungodly looking URL to pass with it.. All you really need to do is point the form to a PHP script that validates the information. Then at the end of that script either include() the form hander if it's valid, or print an error