[PHP] ISSET problem with Form

2004-05-27 Thread Tom Chubb
If you use ISSET together with a hidden field when posting a form to itself
to enter a second-state, is there a way of using it again to get to a
third-state.

Basically, I'm trying to convert a 3 file script into a single file and
first I check to see if it's been submitted and then using ELSE I echo out
the second form. But how do I use isset again?
Do I need to unset the variable from the first stage of the form? If so, how
do I do this and prevent the form going back to the first form state?

I've had the script working with two states but can't get the third state
working!!!
Any help or alternative ideas much appreciated as this is causing me a
serious headache!!!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] ISSET problem with Form

2004-05-27 Thread Jay Blanchard
[snip]
I've had the script working with two states but can't get the third
state
working!!!
Any help or alternative ideas much appreciated as this is causing me a
serious headache!!!
[/snip]

Sessions would be a better way to handle this.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] ISSET problem with Form

2004-05-27 Thread Jay Blanchard
[snip]
I'm new to PHP, so how would I go about using sessions?
I assume one needs to update _SESSION['name'] = $name; with the state of
the
form and then use IF ?
Then I'm stuck again!
[/snip]

start here http://www.php.net/session

P.S. Always reply to the list, you may not get a response. Your e-mail
was redirected to my SPAM folder as an unknown. I just happened to see
it when looking for something else someone swore they sent me.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php