Re: using variables from a form in a longish script - outside of functions

From: Date: Fri, 22 Sep 2000 04:50:14 +0000
Subject: Re: using variables from a form in a longish script - outside of functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17285@lists.php.net to get a copy of this message
On Fri, 22 Sep 2000, Helmut Ott wrote: > > in a longish script I have variables coming in from a form like this: > > A user fills in username & password and action calls the script - the variable values are > passed to the script - so far this works. > > Now when e.g. I want the user to add a new record (which is the purpose of the script) the > variables (that echoed their passed over values in the beginning of the script) are empty when used > further down. Though there is no function involved (where I could define the variables as global ), > only a if-statement within which the variables are used. > > Any clues? > > Thanks everybody. > Helmut > > > Why dont I get the values > Perhaps if you could share the script (or relevant parts of it) it might be easier to diagnose your problem. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#17285) next »