RE: [PHP] using variables from a form in a longish script - outside of functions
| From: | Christopher Thompson | Date: | Fri, 22 Sep 2000 06:46:47 +0000 |
| Subject: | RE: [PHP] 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-18301@lists.php.net to get a copy of this message | ||
Sounds like you are clearing the vars somewhere in your script. Perhaps a
function is doing it and you are not aware of it?
> -----Original Message-----
> From: Helmut Ott [mailto:ott89@t-online.de]
> Sent: Thursday, September 21, 2000 11:08 AM
> To: php-general@lists.php.net
> Subject: [PHP] using variables from a form in a longish script - outside
> of functions
>
>
> 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
>