Jump to content

variable access


ainoy31

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

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.