Jump to content

Popup with HTML?


Warptweet

Recommended Posts

When I click a link to open a popup...

[code]<b><FONT SIZE=+3><A HREF=\"javascript:void(0)\"
ONCLICK=\"window.open('http://www.warptweet.com/211612151419/$randnum','miniwin','toolbar=0

,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=$flashwidth,hei

ght=$flashheight')\">Watch this Movie!</a></font>[/code]

As you can see, I can only open www.warptweet.com/XXXXXXXXXX/XXXXXXXX
How can I open a popup, but instead of openening a website page, make the popup have a code? Such as <h1>Hi there!
Link to comment
https://forums.phpfreaks.com/topic/34755-popup-with-html/#findComment-163807
Share on other sites

That seems more of a complex solution to me. Plus, by using Javascript you make it less accessible.

Your PHP page would just need to consist of the following:
[code]<?php
$randnum = $_GET['randnum'];
$flashwidth = $_GET['flashwidth'];
$flashheight = $_GET['flashheight'];

echo "<EMBED src=\"http://www.warptweet.com/211612151419/$randnum\" width=\"$flashwidth\" height=\"$flashheight\" align=\"center\">, (Tip). <EMBED>
?>[/code]
Not sure what 'Tip' is for or if that is supposed to be a variable, but you get the idea.

Then you just call the page in your popup using "pagename?randnum=12345&flashwidth=200&flashheight=200"
Link to comment
https://forums.phpfreaks.com/topic/34755-popup-with-html/#findComment-164502
Share on other sites

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.