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 Quote Link to comment 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 ^^^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.