Jump to content

[SOLVED] Second eye


ainoy31

Recommended Posts

Hello-

 

I need a second eye to look at this piece of code.  Some of my variables are posting and some are not on the next page.  Here is what I got:

 

<form name="form1" method="post" action="form2.php">

<tr>

<td>Country:</td>

<td><input type="text" name="origin_country" size="20"></td>

</tr>

<tr>

<td>Port:</td>

<td><input type="text" name="origin_port" size="20"></td>

</tr>

<tr>

<td>Destination(Door) - US</td>

<td><input type="radio" name="dest_zip" onClick="zip(this)">Postal Code

  <input type="radio" name="dest_zip" onClick="zip(this)">Other - Specify</td>

<td><input type="text" name="dest_zip" id="postal" style="display: none"></td>

<td><input type="text" name="dest_zip" id="other" style="display: none"></td>

</tr>

</form>

 

Then, on the form2.php page I have:

echo "Origin Country:" . $e = $_POST["origin_country"] . "<br>";

echo "Origin Port:" . $f = $_POST["origin_port"] . "<br>";

echo "Destination Zip:" . $g = $_POST["dest_zip"] . "<br>";

 

The country and port data are displayed but not the zip data.  Much appreciation.

 

Link to comment
https://forums.phpfreaks.com/topic/80490-solved-second-eye/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.