ainoy31 Posted August 1, 2007 Share Posted August 1, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/62941-variable-access/ Share on other sites More sharing options...
trq Posted August 1, 2007 Share Posted August 1, 2007 Your question (if any) is extremely vague and your post contains absolutely no php. What exactly are you wanting to do? Quote Link to comment https://forums.phpfreaks.com/topic/62941-variable-access/#findComment-313401 Share on other sites More sharing options...
ainoy31 Posted August 1, 2007 Author Share Posted August 1, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/62941-variable-access/#findComment-313408 Share on other sites More sharing options...
trq Posted August 1, 2007 Share Posted August 1, 2007 however, the total cost is inside the html DD tag How does it get there? I'm sorry but your still being real vague. Do you actually want to parse this html file or is this data dynamically generated? Quote Link to comment https://forums.phpfreaks.com/topic/62941-variable-access/#findComment-313416 Share on other sites More sharing options...
ainoy31 Posted August 1, 2007 Author Share Posted August 1, 2007 the value is generated in an inlcude calc.js file. like i said, this code is written by someone else who left the company. ty Quote Link to comment https://forums.phpfreaks.com/topic/62941-variable-access/#findComment-313419 Share on other sites More sharing options...
ainoy31 Posted August 1, 2007 Author Share Posted August 1, 2007 the data dynamically generated Quote Link to comment https://forums.phpfreaks.com/topic/62941-variable-access/#findComment-313421 Share on other sites More sharing options...
teng84 Posted August 1, 2007 Share Posted August 1, 2007 maybe your gonna be needing file_get_contents http://www.php.net/manual/en/function.file-get-contents.php Quote Link to comment https://forums.phpfreaks.com/topic/62941-variable-access/#findComment-313426 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.