Ok there is 2 Files: (image.php) (urls.php) =============================== image.php <html> <head> <title> Image Url Generator </title> </head> <body> <center> <br><br> <h1> Image URL Generator </h1><br><br> <form action="urls.php" method="post"> <lablel>Image URL:</label><input name="imgurl" type="text"> <input name="submit" type="submit" value="Generate HTML CODE" /> </form> <br><br><br> </body> </html> PHP: URLS.php <html> <head> <title> Image Url Generator </title> </head> <body> <center> <br><br> <h1> Image URL Generator </h1><br><br> <?php $imgurl = $_GET['imgurl']; ?> <label for="html">html code</label><br /> <input type="text" id="html" value="<img src="$imgurl">" readonly="true" /><br /> </body> </html> PHP: But The Output just shows: <img src=""> (the output is in a only textfield) Th image url doesnt show in between the " " thats where it is supposed to put it
<input type="text" id="html" value="<img src="<?php echo htmlspecialchars($imgurl); ?>">" readonly="true" /><br /> PHP: www.php.net/echo
<form action="urls.php" method="get"> HTML: You're using $_GET in the second page, so you have to submit the form using GET too...