Re: post variables disappeared?
| From: | Cynic | Date: | Thu, 04 Jan 2001 10:57:36 +0000 |
| Subject: | Re: post variables disappeared? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32624@lists.php.net to get a copy of this message | ||
because your PHP now uses a different setting for
register_globals directive. Either php.ini or httpd.conf,
presumably.
At 01:56 4.1. 2001, Niles wrote the following:
--------------------------------------------------------------
>Thanks Chris and all the rest that replied with suggestions. I appreciate the help you all gave
>me.
>
>I made the following change to my phpinfo.php script and got my desired result:
><?
>print("\$testme - " . $HTTP_POST_VARS["testme"] . "<br>\n");
>phpinfo();
>?>
>
>I still don't know whyI have to make that adjustment though.. Any ideas out there?
>
>Niles
>
>----- Original Message -----
>From: Chris Anderson {Programmer Always}
>To: Niles ; julie@thickbook.com
>Cc: php-general@lists.php.net
>Sent: Wednesday, January 03, 2001 7:41 PM
>Subject: Re: [PHP] post variables disappeared?
>
>
>would not having <?php in the phpinfo script cause that?
>----- Original Message -----
>From: "Niles" <niles@flinet.com>
>To: <julie@thickbook.com>
>Cc: <php-general@lists.php.net>
>Sent: Wednesday, January 03, 2001 7:31 PM
>Subject: Re: [PHP] post variables disappeared?
>
>
>> I apologize for the typo in my original request. Here's a "real" file I
>have on my server named "puttestphp.php":
>> <?
>> echo "
>> <form method=post action=phpinfo.php>
>> <input name=testme>
>> <input type=submit>
>> </form>
>> ";
>> ?>
>>
>> The file phpinfo.php is this:
>> <?
>> print("\$testme - $testme<br>\n");
>> phpinfo();
>> ?>
>>
>> Running puttestphp.php and entering any value results in the top line
>saying this:
>> $testme -
>> [the normal output phpinfo() follows]
>>
>> My scripts were working correctly for quite some time which is one of the
>reasons I'm so stymied!
>>
>> Thanks again!
>>
>> Niles
>>
>>
>> ----- Original Message -----
>> From: Julie Meloni
>> To: Niles
>> Cc: php-general@lists.php.net
>> Sent: Wednesday, January 03, 2001 7:23 PM
>> Subject: Re: [PHP] post variables disappeared?
>>
>>
>>
>> > For instance, if I have a form:
>> > <form method=POST action=somephpfile.php>
>> > <input name=thisvar type=hidden>
>> > <input type submit>
>> > </form>
>> >
>> > with somephpfile.php:
>> > <?
>> > print("\$thisvar - $thisvar<br>\n");
>> > ?>
>> >
>> > the only output will be:
>> > $thisvar -
>> >
>> > Does anyone have a clue what may have happened?
>>
>> It has no value -- look at your input field.
>>
>>
>> --
>> +------------------------------------------------+
>> | Julie Meloni (julie@i2ii.com) |
>> | Tech. Director, i2i Interactive (www.i2ii.com) |
>> | |
>> | "PHP Essentials" & "PHP Fast & Easy" |
>> | http://www.thickbook.com/ |
>> +------------------------------------------------+
>>
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz