Re: Forms and Sessions not working
| From: | conbud | Date: | Sat, 16 Nov 2002 19:11:41 +0000 |
| Subject: | Re: Forms and Sessions not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124741@lists.php.net to get a copy of this message | ||
Hi,
If your register_globals is off then you will need to use
$_GETand $_POST to get the data from the form.
echo $_POST['Name'];
Lee
"Chris Jackson" <spintrance7@hotmail.com> wrote in message
news:20021116071058.27524.qmail@pb1.pair.com...
> Hi all:
> Im new to php and i have an isue.
>
> php4.2.3 windows 2000 advanced server
>
>
> I create a simple form page that posts back to its self and im unable to
> retreive the posted form data to display on the page.
>
> it seems like all my GLOBAL amd SESSION stuff isnt working.
> sample code:
>
>
> <form name="form" method="post" action="thispage.php">
> Your Name<br>
> <input type="text" name="Name" value="<?PHP $Name
> ?>"><br>
> <input type="submit" name="Submit" value="Submit">
> </form>
>
> Im thinking that it may be a setting in the php.ini file but i dont know..
> Please help.
>
> Thanks.
>
>