RE: [PHP] Sessions Question
| From: | Jake McHenry | Date: | Wed, 15 Oct 2003 19:40:03 +0000 |
| Subject: | RE: [PHP] Sessions Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-166241@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Chris W. Parker [mailto:cparker@swatgear.com]
> Sent: Wednesday, October 15, 2003 12:01 PM
> To: Jake McHenry; php-general@lists.php.net
> Subject: RE: [PHP] Sessions Question
>
>
> Jake McHenry <mailto:linux@nittanytravel.com>
> on Tuesday, October 14, 2003 7:00 PM said:
>
> > Mainly what my problem is, is that when I turn
> Register_Globals = Off,
> > then my scripts stop working. I can't even get past the
> page I showed
> > you, the login page. No errors, it's just like I didn't enter any
> > data.
>
> Doesn't that just mean that instead of retrieving form
> variables by their name you need to grab them from $_POST or $_GET?
>
> Here is an example of what you should be doing to retrieve
> the values sent from a form:
>
> <form method="post" action="nextpage.php">
> <input type="text" name="name"/>
> <input type="submit" value="Submit"/>
> </form>
>
> nextpage.php:
>
> <?php
>
> $name = $_POST['name'];
>
> ?>
>
>
>
> HTH,
> Chris.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Do I need to add the start_session() function to my config.php and
time.php? Do I need to change any variables in those files?
Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com