_POST, _GET, _REQUEST -......
Posted: Wed Nov 13, 2002 11:40 am
Hi I a real newbee to the PHP and I'm ashamed to say that I can't working this out so if someone would be kind enough to help me, Please.
My problem is that when I'm trying to transfere variables to a script they can't be found in either _POST, _GET, _REQUEST, _COCKIE, _SESSION
this is my index.html
<form action="action.php" method="POST">
<select name=fruit>
<option>Apple<option>Orange<option>Banana<option>Pear</select>
<input type=submit>
</form>
and this is the action.php
<html> <head> <title>phptest</title>
<body bgcolor=white>
<?
$fruits=$_POST['fruit'];
echo "Your choice $fruits<P>";
?>
</body></html>
The out put of this just shows "Your choice"
it doesn't matter what ever kind of fruit I choose, I can't see it.
Should probably mention that I'm running an Apache2 server
with PHP 4.3.0-pre2 on a WinXP machine.
PLEASE HELP ME!
My problem is that when I'm trying to transfere variables to a script they can't be found in either _POST, _GET, _REQUEST, _COCKIE, _SESSION
this is my index.html
<form action="action.php" method="POST">
<select name=fruit>
<option>Apple<option>Orange<option>Banana<option>Pear</select>
<input type=submit>
</form>
and this is the action.php
<html> <head> <title>phptest</title>
<body bgcolor=white>
<?
$fruits=$_POST['fruit'];
echo "Your choice $fruits<P>";
?>
</body></html>
The out put of this just shows "Your choice"
it doesn't matter what ever kind of fruit I choose, I can't see it.
Should probably mention that I'm running an Apache2 server
with PHP 4.3.0-pre2 on a WinXP machine.
PLEASE HELP ME!