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
Passing Variables error
Moderator: General Moderators
try sticking a
at the top of your Handler.php page and see what it prints out.
Code: Select all
print_r($_POST);-
yonibensimon
- Forum Newbie
- Posts: 15
- Joined: Thu Aug 07, 2003 10:24 am