Jump to content

Popup Window + picture from DB


aldodager

Recommended Posts

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!
Link to comment
https://forums.phpfreaks.com/topic/12761-popup-window-picture-from-db/
Share on other sites

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\" /]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.