aldodager Posted June 23, 2006 Share Posted June 23, 2006 im a php newbie, so please excuse me if this is too easy, but i really need help on this:the following link takes you to another page, but what i want is that instead of linking you to another page, it has to open a popup...any ideas?here is the code[code]<form name="form_picture" method="post" action="picture.php"> <input type=hidden name=id_item> <a href="#" <?echo "onclick=gotopicture(" . $item_id . ")";?>><strong>Click here to enlarge the picture</strong></a></form>[/code]thanks, i really appreciate your help! Quote Link to comment https://forums.phpfreaks.com/topic/12761-popup-window-picture-from-db/ Share on other sites More sharing options...
jworisek Posted June 23, 2006 Share Posted June 23, 2006 well if you just want to open a new window with a link, you can use:[code]<a href="" target="_blank"></a>[/code]not sure if that will work with what you have. Quote Link to comment https://forums.phpfreaks.com/topic/12761-popup-window-picture-from-db/#findComment-48914 Share on other sites More sharing options...
aldodager Posted June 23, 2006 Author Share Posted June 23, 2006 Thanks jworisek for replying, but I think that I didnt made understandable (this word exists? jeje) this issue...If you read the code you will find the following thing:I have a link that says: CLICK HERE TO ENLARGE... if you click it, it will take you to another page in the same browser window... i dont want to use _blank beacuse i need a browser window with a 640 pixels width and 480 pixels height...the answer: POPUP WINDOW...Probably I've been working too much, but i cant find a way to add the popup window code:[code]<a href="#" onClick="MM_openBrWindow('HERE GOES THE PATH','b','width=640,height=480')">[/code]into the ENLARGE PICTURE link:[code]<form name="form_picture" method="post" action="picture.php"> <input type=hidden name=id_item> <a href="#" <?echo "onclick=gotopicture(" . $item_id . ")";?>><strong>Click here to enlarge the picture</strong></a></form>[/code] [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Quote Link to comment https://forums.phpfreaks.com/topic/12761-popup-window-picture-from-db/#findComment-48916 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.