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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.