Does any one have any ideas on how to send a user to another page after the user input is validated and checks out?
I start with a logon form page (email and password fields) called logon.php.
I validate a form by sending the user input back to the top of the logon page and check the input with a reg. expression, is it in the data base etc.
If it fails, the logon form (which is just code lower on the same page) just displays again with an invalid email message or such.
If it passes, I want to send the user to a new page in the same window.
I tried changing the form attribute action="logon.php"
but if I use an IF statement to change the action "address" you have to resubmit the info again to go to the new page. (it takes a second pass to hit the now changed action "address")
I could open and close windows with java but I'm really trying to stick to PHP for a very reliable and error free site.
Anyway to do it with just php?
A click simulator would do the trick.
This site seems to use one when submitting posts.
Does PHP have one?
If not...
I think java has a click simulator event handler that could be used with an IF statement, but I have minimal java exp. Can it force a href url? How does it work? (a quick code snippet would be very helpful, if anyone has one handy).
Any Ideas?
Thanks very much all for the time and advice.
Virgil