lundi 29 décembre 2014

is it possible to have iframe GET variables carried over from page 1 form in URL


Vote count:

0




im new to coding, i have been self teaching myself for around 12 months now. With the help of this forum and constantly searching for help without the need of posting i have finally hit a brick wall! It has taken me 15 hours today to try and find away round this problem and i just can not seem to find the way!


So the issue is i have an iframe on one of my pages throughout the client booking process, the iframe is installed like so:



<iframe id="processid" class="showWithID" tabindex="1" height="850" width="650" scrolling="no"
src="ID.html" frameborder="0"></iframe>


Now the problem i have is that the first stage of the process sends the user inputs in the form by GET and displayed in the URL. My Question is.. Would it be possible to have the iframe store them as hidden inputs by retrieving them from the URL and if so how would i do this?


I can do this when not using the iframe by simple code like:



<input type="hidden" value="<?php echo $_GET['TotPrice']; ?>" name="Total Price">
<input type="hidden" value="<?php echo $_GET['CustomerName']; ?>" name="Customer Name">
<input type="hidden" value="<?php echo $_GET['ContactNumber']; ?>" name="Contact Number">


However if i add that code to the iframe it does not see this and when you view the source code you can actually see the php script.


Sorry for the not so clued up questions guys, Your help and input is much appreciated, as i say i really am still leaning the basics.


Kind regards, James



asked 37 secs ago







is it possible to have iframe GET variables carried over from page 1 form in URL

Aucun commentaire:

Enregistrer un commentaire