Re: Repost - Form/Session Problem with sample code = Probably easy question - Thanks for any help!
| From: | Jason Wong | Date: | Tue, 27 Jan 2004 11:34:57 +0000 |
| Subject: | Re: Repost - Form/Session Problem with sample code = Probably easy question - Thanks for any help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175887@lists.php.net to get a copy of this message | ||
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.
*/