Forum Moderators: coopster
I want to make a 2 page app.
Page 1: Simple form that you can enter a url into
Page 2: Takes the URL from the form on page 1 and pops it into an iframe in page 2
Im guessing that somehow the URL on page 1 has to be passed into the URL as a variable and sucked into page 2 between the iframe tags.
Can anyone show me how to do this? Thanks so much.
[edited by: eelixduppy at 6:55 pm (utc) on Oct. 10, 2008]
[edit reason] removed URL [/edit]
<form action=page2.php method=get>
URL:<input type=text name=url size=50>
<br>
<input type=submit value=Load>
</form>
------------------------------------------
page2.php
<?php
$url=mysql_real_escape_string($_REQUEST['url']);
echo "<iframe src ='$url' width='100%'></iframe>";
?>
Sorry in advance to all those who would dislike the html code above, since its not a Validation test.
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'inter'@'localhost' (using password: NO) in ***** on line 10
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/inter******************* on line 10