GreenBuck Posted January 10, 2010 Share Posted January 10, 2010 Hey guys im having this problem, im using this content blocker on my website so people have to enter their email address when they click the link..but the link that is on the content blocker page is a link to a php file that automatically rotates urls's for me. <?php $random_url = array("http://www.site1.com", "http://www.site2.com","http://www.site3.com","http://www.site4.com"); srand(time()); $random = (rand()%count($random_url)); header ("Location: $random_url[$random]"); ?> see what i want to know how can i have a smaller window pop up when some one clicks the link to my php file..please someone help me!!! Quote Link to comment https://forums.phpfreaks.com/topic/187958-open-smaller-window/ Share on other sites More sharing options...
MadTechie Posted January 10, 2010 Share Posted January 10, 2010 Open the page via Javascript, ie window.open ("myPHPscript.php", "mywindow","menubar=1,resizable=1,width=350,height=250") then the script will get the random location.. Quote Link to comment https://forums.phpfreaks.com/topic/187958-open-smaller-window/#findComment-992367 Share on other sites More sharing options...
GreenBuck Posted January 10, 2010 Author Share Posted January 10, 2010 hey mad it works, the thing is when i click the link on my content blocker it opens a whole new tab then the smaller window pops up in on top of that new tab..is there anyway i can have the new small window pop up in front of my content blocker..thx Quote Link to comment https://forums.phpfreaks.com/topic/187958-open-smaller-window/#findComment-992375 Share on other sites More sharing options...
GreenBuck Posted January 10, 2010 Author Share Posted January 10, 2010 --BUMP-- anyone can help? Quote Link to comment https://forums.phpfreaks.com/topic/187958-open-smaller-window/#findComment-992432 Share on other sites More sharing options...
oni-kun Posted January 10, 2010 Share Posted January 10, 2010 --BUMP-- anyone can help? This is sort of out of the scope for a PHP help question. Why not use this magical site to find the oh so many answers to your question already nicely written? Quote Link to comment https://forums.phpfreaks.com/topic/187958-open-smaller-window/#findComment-992439 Share on other sites More sharing options...
GreenBuck Posted January 10, 2010 Author Share Posted January 10, 2010 --BUMP-- anyone can help? This is sort of out of the scope for a PHP help question. Why not use this magical site to find the oh so many answers to your question already nicely written? I All ready searched on google for hours nothing comes up..I came to this forum thinking people that know stuff like this would no how to do it.. Quote Link to comment https://forums.phpfreaks.com/topic/187958-open-smaller-window/#findComment-992450 Share on other sites More sharing options...
MadTechie Posted January 11, 2010 Share Posted January 11, 2010 How are you using the script ? what browser. what popup blocker. example of the problem ? Quote Link to comment https://forums.phpfreaks.com/topic/187958-open-smaller-window/#findComment-992481 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.