Thread: Pop-up Window within PHP how?
Results 1 to 4 of 4
Related
-
Popup-like window Forum: HTML Forum
Replies: 0 -
Passing value from parent window to child window Forum: Javascript Forum
Replies: 0 -
Accessing a element of parent window in child window Forum: Javascript Forum
Replies: 1 -
New Image Window Forum: HTML Forum
Replies: 2
-
08-06-2008, 10:00 AM #1
Pop-up Window within PHP how?
I have an inframe PHP coded form within a HTML page. I like to have a pop-up window for more info.
I can not figure out how.
I think I have to exit the PHP secession and start a HTML secession and put in some javascript??
Can someone give some help on what direction to go and how?
Thanks a Lot
Russ
-
08-06-2008, 07:21 PM #2
Re: Pop-up Window within PHP how?
JS in PHP will work without constraints. You just need to surround it with <script></script> tags. A basic example to keep you going:
PHP Code:<?php
echo '<script type="text/javascript">
window.onload=function(){alert("It\'s been parsed correctly.");}
</script>';
?>Checkout my porfolio.
Please click thebutton when a member helped you.
Take time to use Forum's Search function.
-
08-19-2008, 09:39 AM #3
Re: Pop-up Window within PHP how?
Or you can look here on this site for a quick tutorial...I looked it up in the webmaster tools area up there. ^^
http://www.ahfb2000.com/popupmakertool.php
-
08-20-2008, 10:51 AM #4
Re: Pop-up Window within PHP how?
The best way to do it is to use JavaScript. There is a great tool here to create a popup window (thanks to gotoguy). There are also quite a few scripts out on the web (for free) that will do what you need as well.
rangana has the right of it as well. You don't have to create a whole new script in order to server up HTML/JavaScript code. You have two options.
Option #1
Code:<?php echo "HTML code here"; ?>
Code:<?php php code here ?> HTML code here
Hope that answers your question. I can help you figure out what you need more if you need the additional assistance.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum