miracle_potential Posted May 29, 2008 Share Posted May 29, 2008 I cant get my script to pass a variable ( or even think how to go about it actually!) to an Iframe I have nested in a hidden DIV. really to sum things up. Page->user clicks add to basket ( iframe in top right corner refreshes(WORKS) and a hidden div shrouding the web page appears with the current shopping basket in it) But I cant get the ID associated with 'adding' passed to the IFrame. I have this ?action=add&ID= ID Not sure how I get this (or even just the ID ) passed as a variable to the IFrame so that the basket class I have can GET it and store it as an 'added item' Anyone help? Link to comment https://forums.phpfreaks.com/topic/107872-passing-variables-to-iframes/ Share on other sites More sharing options...
discomatt Posted May 29, 2008 Share Posted May 29, 2008 <a href="page.php?pass=this" target="your_iframe_name"> Link to comment https://forums.phpfreaks.com/topic/107872-passing-variables-to-iframes/#findComment-552951 Share on other sites More sharing options...
miracle_potential Posted May 29, 2008 Author Share Posted May 29, 2008 Ah well haha didnt think it would be so stupid. Thanks buddy! *pulls retarded face* its how I feel right now haha Link to comment https://forums.phpfreaks.com/topic/107872-passing-variables-to-iframes/#findComment-552956 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.