Jump to content

Archived

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

aldodager

Popup Window + picture from DB

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!

Share this post


Link to post
Share on other sites
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.

Share this post


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

Share this post


Link to post
Share on other sites

×

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.