RE: [PHP] Sessions Question
| From: | Chris W. Parker | Date: | Wed, 15 Oct 2003 16:01:03 +0000 |
| Subject: | RE: [PHP] Sessions Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166220@lists.php.net to get a copy of this message | ||
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.