On Monday 26 January 2004 05:11, Paul wrote:
> I am trying to use a back button to allow a user to change submitted form
> values.
>
> The problem I am having is that when they submit the form a second time,
> regardless of what is entered, the variable $test does not change and keeps
> only the first value assigned to it! I am able to solve this by using
> session_unset($test); but I don't understand what is happening/why I should
> need to do this.
>
> Any help appreciated, here is some sample code to illustrate. Running this,
> only what is typed in first for $test is kept after that it will not take
> on new values!

[snip]

If you're using a relatively new version of php, it is strongly recommended 
that you code for "register_globals = Off" and accordingly use the 
corresponding method of handling sessions (manual > Session handling 
functions).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Man who falls in blast furnace is certain to feel overwrought.
*/

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

Reply via email to