about2flip
Technical User
Hi: After fixing some nerve wrecking errors thanks to this forum, I can not see why my form result are not displaying after the user hits submit. Here is my code: Thanks!
webform1 Code:
<html>
<head> </head>
<body>
<form action="verify.php" method="post">
<b>Please Enter Your Information:</b><br>
First Name:<input type="text" name="first_name"><br>
Last Name:<input type="text" name="last_name"><br>
Street Address:<input type="text" name="street_address"><br>
City:<input type="text" name="city"><br>
State:<select name="State">
<option>Please Select</option>
<option>New Jesery</option>
<option>New York</option>
<option>Georgia</option>
<option>North Carolina</option> <br><br>
ZipCode:<input type="text" name="zipcode"><br>
Phone Number:<input type="text" name="phone_number">(ex.xxx-xxx-xxxx)<br>
Username:<input type="text" name="username"><br>
Password:<input type="password" name="password" maxlength="10">(no more than 10 characters)<br>
Email:<input type="text" name="email">
<input type="Submit" name="send_form" value="Submit">
</form>
</html>
</body>
=======================================================
verify.php Code:
<html>
<head></head>
<body>
<?php
if(!empty($_POST['send_form'])) {
echo "Please verify your information that you entered:<br><br>
First Name:".$_POST['first_name']."<br>
Last Name:".$_POST['last_name']."<br>
Street Address:".$_POST['street_address']."<br>
City:".$_POST['city']."<br>
State:".$_POST['state']."<br>
Zip Code:".$_POST['zipcode']."<br>
Phone Number:".$_POST['phone_number']."<br>
User Name:".$_POST['username']."<br>
Email:".$_POST['email']."<br>";
}
?>
<form action="thankyou.php" method="post">
<input type="hidden" name="first_name" value="<? $_POST['first_name']; ?>">
<input type="hidden" name="last_name" value="<? $_POST['last_name']; ?>">
<input type="hidden" name="street_address" value="<? $_POST['street-address']; ?>">
<input type="hidden" name="city" value="<? $_POST['city']; ?>">
<input type="hidden" name="state" value="<? $_POST['state']; ?>">
<input type="hidden" name="zipcode" value="<? $_POST['zipcode']; ?>">
<input type="hidden" name="phone_number" value="<? $_POST['phone_number']; ?>">
<input type="hidden" name="username" value="<? $_POST['username']; ?>">
<input type="hidden" name="email" value="<? $_POST['email']; ?>">
<input type="submit" value="Submit">
</form>
</body>
</html>
webform1 Code:
<html>
<head> </head>
<body>
<form action="verify.php" method="post">
<b>Please Enter Your Information:</b><br>
First Name:<input type="text" name="first_name"><br>
Last Name:<input type="text" name="last_name"><br>
Street Address:<input type="text" name="street_address"><br>
City:<input type="text" name="city"><br>
State:<select name="State">
<option>Please Select</option>
<option>New Jesery</option>
<option>New York</option>
<option>Georgia</option>
<option>North Carolina</option> <br><br>
ZipCode:<input type="text" name="zipcode"><br>
Phone Number:<input type="text" name="phone_number">(ex.xxx-xxx-xxxx)<br>
Username:<input type="text" name="username"><br>
Password:<input type="password" name="password" maxlength="10">(no more than 10 characters)<br>
Email:<input type="text" name="email">
<input type="Submit" name="send_form" value="Submit">
</form>
</html>
</body>
=======================================================
verify.php Code:
<html>
<head></head>
<body>
<?php
if(!empty($_POST['send_form'])) {
echo "Please verify your information that you entered:<br><br>
First Name:".$_POST['first_name']."<br>
Last Name:".$_POST['last_name']."<br>
Street Address:".$_POST['street_address']."<br>
City:".$_POST['city']."<br>
State:".$_POST['state']."<br>
Zip Code:".$_POST['zipcode']."<br>
Phone Number:".$_POST['phone_number']."<br>
User Name:".$_POST['username']."<br>
Email:".$_POST['email']."<br>";
}
?>
<form action="thankyou.php" method="post">
<input type="hidden" name="first_name" value="<? $_POST['first_name']; ?>">
<input type="hidden" name="last_name" value="<? $_POST['last_name']; ?>">
<input type="hidden" name="street_address" value="<? $_POST['street-address']; ?>">
<input type="hidden" name="city" value="<? $_POST['city']; ?>">
<input type="hidden" name="state" value="<? $_POST['state']; ?>">
<input type="hidden" name="zipcode" value="<? $_POST['zipcode']; ?>">
<input type="hidden" name="phone_number" value="<? $_POST['phone_number']; ?>">
<input type="hidden" name="username" value="<? $_POST['username']; ?>">
<input type="hidden" name="email" value="<? $_POST['email']; ?>">
<input type="submit" value="Submit">
</form>
</body>
</html>