Frustrated.
I have a form
it only shows the value of the last textbox. Fair enough.
My understanding is that to get both values I need to use $HTTP_POST_VARIABLES, but when I do, it only has one value in teh array.
My background is with ASP and I am moving to PHP. With ASP I would have had a string 1,2 returned, but I can't even get forach() to work with this.
What am I doing wrong?
Thanks in advance
Steve Davis
ttf(a)HaHaHa.com.au
Me? I can't even spell ASP!
NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.
I have a form
Code:
<?php
if (isset($_POST["Submit"]) && ($_POST["Submit"] > "")){
echo $_POST['textfield'];
}
?>
<form name="form1" method="post" action="">
<p>
<input type="text" name="textfield" value='1'>
<input type="text" name="textfield" value='2'>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
My understanding is that to get both values I need to use $HTTP_POST_VARIABLES, but when I do, it only has one value in teh array.
My background is with ASP and I am moving to PHP. With ASP I would have had a string 1,2 returned, but I can't even get forach() to work with this.
What am I doing wrong?
Thanks in advance
Steve Davis
ttf(a)HaHaHa.com.au
Me? I can't even spell ASP!
NOTE: This sig does not include any reference to voting, stars, or marking posts as helpful as doing so is cause for membership termination.