A
Anonymous
Guest
hi guys...
i'm a newbie in php.lately i try to use method GET to transfer variable value to another page.but if fail.
the error message is undefined variable team in xxx.php
this is my code:
in somepage.html
<form action="http://localhost/try.php" method="GET">
<select name="team">
<option value="Cubbies">Chicago cubs
<option value="Pale Hose">Chicago White Sox
</select>
<p>
<input type="Submit">
in try.php
<?php
print("$team");
?>
i thought that it might work cos it's only a simple task.can anyone help with this..?pls...
i'm a newbie in php.lately i try to use method GET to transfer variable value to another page.but if fail.
the error message is undefined variable team in xxx.php
this is my code:
in somepage.html
<form action="http://localhost/try.php" method="GET">
<select name="team">
<option value="Cubbies">Chicago cubs
<option value="Pale Hose">Chicago White Sox
</select>
<p>
<input type="Submit">
in try.php
<?php
print("$team");
?>
i thought that it might work cos it's only a simple task.can anyone help with this..?pls...