priyank Posted April 17, 2009 Share Posted April 17, 2009 <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <form action="showPictures.php" method="GET" target="imageFrame"> <select name="dropdown" onchange="this.form.submit()"> <option value="" selected> </option> <option value="1">Image1</option> <option value="2">Image2</option> <option value="3">Image3</option> </select> </form> <iframe name="imageFrame" align="middle" height="600px" width="500px" border="1"> </iframe> </body> I can display and see the images from php file but image is displayed in new window. I want to display image in the iframe name="imageFrame". Do i need to use javascript Link to comment https://forums.phpfreaks.com/topic/154478-iframe-display-images/ Share on other sites More sharing options...
rascle Posted April 19, 2009 Share Posted April 19, 2009 You might want to try: <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <form action="showPictures.php" method="GET" target="imageFrame"> <select name="dropdown" onchange="this.form.submit()"> <option value="" selected> </option> <option value="1">Image1</option> <option value="2">Image2</option> <option value="3">Image3</option> </select> </form> <iframe src="showPictures.php" name="imageFrame" align="middle" height="600px" width="500px" border="1"> </iframe> </body> It may be because you havent sourced the iframe, try the code above ^^^ Link to comment https://forums.phpfreaks.com/topic/154478-iframe-display-images/#findComment-813807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.