gottaloveit
New Member
- Messages
- 33
- Reaction score
- 0
- Points
- 0
Hello all, I've searched and read extensively on this but havn't found something that I could make work.
I have a php page on which a number of results are displayed from a mysql database query. Some of these results are hyperlinks (the 'name' var). On the same page is an iframe. When the hyperlink 'name' is clicked, I would like the iframe to load with the appropriate fields from my database ('name', 'location', 'address', etc).
I only want to pass one variable from main page to the iframe, and from there i can build the mysql query to return the results i need.
So how do I pass the var 'name', which is a result returned from the mysql query, to the iframe?
I've been playing with passing the var through the iframe url, but can't seem to find a way (with my limited knowledge ) to pass it, considering that the hyperlink that loads the iframe looks like this:
echo "<td> <a href=\"javascript:loadintoIframe('myframe', 'iframe2.php')\">" . $row['name'] . "</a> </td>";
Thanks for any help, I appreciate it.
I have a php page on which a number of results are displayed from a mysql database query. Some of these results are hyperlinks (the 'name' var). On the same page is an iframe. When the hyperlink 'name' is clicked, I would like the iframe to load with the appropriate fields from my database ('name', 'location', 'address', etc).
I only want to pass one variable from main page to the iframe, and from there i can build the mysql query to return the results i need.
So how do I pass the var 'name', which is a result returned from the mysql query, to the iframe?
I've been playing with passing the var through the iframe url, but can't seem to find a way (with my limited knowledge ) to pass it, considering that the hyperlink that loads the iframe looks like this:
echo "<td> <a href=\"javascript:loadintoIframe('myframe', 'iframe2.php')\">" . $row['name'] . "</a> </td>";
Thanks for any help, I appreciate it.