Jump to content

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

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.