Re: Re: POST method not allowed
| From: | Tom Rogers | Date: | Thu, 10 Oct 2002 01:55:27 +0000 |
| Subject: | Re: Re: POST method not allowed | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119484@lists.php.net to get a copy of this message | ||
Hi,
Wednesday, October 9, 2002, 10:19:30 PM, you wrote:
MK> Ok, my bad, firstup i didnot set in httpd.conf to process *.php3 files. But
MK> i already fix that. So, now all I'm getting is that when I I try to process
MK> the data from a form whether I'm using GET or POST method, the value that i
MK> get processed form is still null.
MK> I check in the error log file and this is what it say:
MK> [Wed Oct 09 20:18:47 2002] [error] PHP Notice: Undefined variable: name in
MK> e:\program files\apache group\apache\htdocs\test.php3 on line 3
MK> Or is there something wrong in my code?
MK> <form method=GET action=test.php3>
MK> <tr>
MK> <td width="50%" style="border-style: none; border-width: medium"
height="20">>
MK> <p>Name: <input type="text" name="name"
MK> size="20"></p>
MK> <p> </p>
MK> <p><input type="submit" value="Submit"
MK> name="submit"><input type="reset"
MK> value="Reset" name="B2"></p>
MK> </form>
MK> ----------------------------------------------------------------------------
MK> -----------------------
MK> <html>
MK> <?php
MK> print "my name is $name";
?>>
MK> </html>
Try
<?php
print "my name is $_GET['name']";
?>
If that works lookup register_globals on www.php.net
--
regards,
Tom