metamorphy
Programmer
Hi,
For some reason $_POST doesn't seem to be working. For example, when I do this:
<?php
$variable = $_POST['foo'];
?>
When I echo $variable; , the variable is empty. For some reason $_POST['foo'] is not getting the form data sent from the previous page??. I am using method="post" on the submission form. Do I need to configure my php.ini or something? This is ultimately screwing up my ability to use $_SESSION also.
This code works:
<?php
$_SESSION['variable'] = $foo;
?>
but when I try to pass the session variable to a new page, its gone.
This obviously does not work ...
<?php
$_SESSION['variable'] = $_POST['foo'];
?>
I can only guess it something to do with the php.ini configuration. Any tips or help would be greatly appreciated. Thanks!!
For some reason $_POST doesn't seem to be working. For example, when I do this:
<?php
$variable = $_POST['foo'];
?>
When I echo $variable; , the variable is empty. For some reason $_POST['foo'] is not getting the form data sent from the previous page??. I am using method="post" on the submission form. Do I need to configure my php.ini or something? This is ultimately screwing up my ability to use $_SESSION also.
This code works:
<?php
$_SESSION['variable'] = $foo;
?>
but when I try to pass the session variable to a new page, its gone.
This obviously does not work ...
<?php
$_SESSION['variable'] = $_POST['foo'];
?>
I can only guess it something to do with the php.ini configuration. Any tips or help would be greatly appreciated. Thanks!!