Automatic Redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
moniarde
Forum Newbie
Posts: 20
Joined: Thu Feb 06, 2003 12:45 am
Location: Perth, Western Australia

Automatic Redirect

Post by moniarde »

Can anyone tell me if it is possible to send variables to a page automatically? For example, I have a form which I am posting to a validation script in another file. I want to be able to say "if the form contains an error, go back to the form and print the variable that says there's an error, else, go to the next page." Is this possible?

Ta.
redJag
Forum Newbie
Posts: 18
Joined: Fri Jan 31, 2003 12:17 am

Post by redJag »

you could have the action page loaded by the form be an inbetween page that will either return you to the form or forward you to the next page. it would be smarter to have error checking via javascript on the form page though. or maybe use both. the intermediate page can pass them on to the next page with either cookies (somewhat more secure) or using the "get" method meaning the URL ends in ?variableName=variableValue
Post Reply