Passing Variables error
Posted: Mon Aug 11, 2003 10:56 am
Hi guys, i read the sticky on passing variables, but i still got errors!
Here is my html file:
<form action="Handler.php" method="POST">
<input type="text" name="text1">
<input type="text" name="text2">
<input type="submit" value="GO">
</form>
And here is the Handler.php file:
<?php
echo $_POST['text1'];
echo $_POST['text2'];
?>
And here is what i get :
PHP Notice: Undefined index: FirstElement in C:\Documents and Settings\jbensimon\Desktop\forum guy\FormHandler.php on line 8 PHP Notice: Undefined index: SecondElement in C:\Documents and Settings\jbensimon\Desktop\forum guy\FormHandler.php on line 9
Here is my html file:
<form action="Handler.php" method="POST">
<input type="text" name="text1">
<input type="text" name="text2">
<input type="submit" value="GO">
</form>
And here is the Handler.php file:
<?php
echo $_POST['text1'];
echo $_POST['text2'];
?>
And here is what i get :
PHP Notice: Undefined index: FirstElement in C:\Documents and Settings\jbensimon\Desktop\forum guy\FormHandler.php on line 8 PHP Notice: Undefined index: SecondElement in C:\Documents and Settings\jbensimon\Desktop\forum guy\FormHandler.php on line 9