Jump to content

Recommended Posts

Hi,

Is it posible to make a popup window that will resize to the image size + room for the desciption using php without any javascript?

The description is stored in the database and the image name+extension is stored in the database with the images in a folder on the server.

Thanks
Link to comment
https://forums.phpfreaks.com/topic/19422-php-popup-window/
Share on other sites

PHP cannot resized the browser. PHP cannot do anything to the clients browser window like javascript can. You open a new window with normal html when you click a link. Use [b]target="_blank"[/b] in your anchor tag, eg:
[code]<a href="http://google" target="_blank">Google</a>[/code]

What you are aksing is not possible with PHP AFAIK. The only option is javascript if you want to resize the browser window, create a popup etc.
Link to comment
https://forums.phpfreaks.com/topic/19422-php-popup-window/#findComment-84344
Share on other sites

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.