Am a .NET programmer coming over to PHP, and I know this is a silly question, but I can't get it to work:
-----------------------------------------------------
// Subscription Form
<div>
<form action="CheckEmail.php" method="post">
First Name: <input type="text" name="FirstName" /><br>
Last Name: <input type="text" name="LastName" /><br>
Email Address: <input type="text" name="EmailAddress" />
<input type="submit" value="Submit" />
</form>
</div>
// Output Page
<?php
$FirstName = $_POST['FirstName'];
$LastName = $_POST['LastName'];
$EmailAddress = $_POST['EmailAddress'];
echo $FirstName;
echo $LastName;
echo $EmailAddress;
?>
-----------------------------------------------------
All that shows up on the Output page is $EmailAddress... the first two are blank. What's going on here?
Thanks.
-----------------------------------------------------
// Subscription Form
<div>
<form action="CheckEmail.php" method="post">
First Name: <input type="text" name="FirstName" /><br>
Last Name: <input type="text" name="LastName" /><br>
Email Address: <input type="text" name="EmailAddress" />
<input type="submit" value="Submit" />
</form>
</div>
// Output Page
<?php
$FirstName = $_POST['FirstName'];
$LastName = $_POST['LastName'];
$EmailAddress = $_POST['EmailAddress'];
echo $FirstName;
echo $LastName;
echo $EmailAddress;
?>
-----------------------------------------------------
All that shows up on the Output page is $EmailAddress... the first two are blank. What's going on here?
Thanks.
Comment