Jump to content

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\" /]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.