Hi all. I stink at PHP and you all rock so heres a question. 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 Similar to this site: http://www.thesitekick.com/ (although that is asp) 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.
Here is the Basic Script i created, you can customize it: 1st page: index.php <html> <head> <title>[B]Your Website Title[/B]</title> </head> <body> <div align="center"> <form action="[B]frame.php[/B]" method="post" target="_blank"> <b>Enter URL</b> <br> <input type="text" name="url" size="50" value="http://www."> <input type="submit" value="GO!"> </form> </div> </body> </html> Code (markup): 2nd Page: frame.php <?php $url=$_POST['url']; $yoursite="[B]http://mysite.com/[/B]"; $yoursitename="[B]My Site[/B]"; ?> <html> <head> <title><?php echo $url;?> - Your Website Title</title> <body> Powered by <a href="<?php echo $yoursite;?>"><?php echo $yoursitename;?></a> <iframe src ="<?php echo $url;?>" width="100%" height="100%"> </iframe> </body> </html> Code (markup): Change Bold Text in Above to your needs. Thanks.