Jump to content

Recommended Posts

here is the code and i did not write it but i am stuck with it.

 

<dt>Cost per Person</dt>

<dd id="costPerPerson">-</dd>

<dt>Cost of Flight</dt>

<dd id="costOfFlight">-</dd>

 

i want to pass the value of id="costOfFlight" to another page after the submit button but it is not working. 

 

i am trying this way: <input type="hidden" name="costOfFlight"  value="" > but stuck on what to put in the value field.  it probably is wrong.  any suggestions would be appreciated.

 

ty,  AM

Link to comment
https://forums.phpfreaks.com/topic/62941-variable-access/
Share on other sites

sorry man.  i have a reservation form and I need to pass the total cost to another page.  however, the total cost is inside the html DD tag:

 

<div id="flightCost" <?php if($returnTrip == 'question') echo 'class="hidden"';?>>

<dl>

<dt>Cost per Person</dt>

<dd id="costPerPerson">-</dd>

<dt>Cost of Flight</dt>

<dd id="costOfFlight">-</dd>

<dt>Flight Time</dt>

<dd id="flightTime">-</dd>

</dl>

 

how do i go about getting the value of id="costPerPerson" to another page after the submit button is clicked?  i have tried the <input type> but have no success.  <input type = "hidden" name = "ff_price" value"?"  ?>  the value field is where I am stuck.  hope this make more sense.   

Link to comment
https://forums.phpfreaks.com/topic/62941-variable-access/#findComment-313408
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.