Jump to content

Help with Location : redirect


Riparian

Recommended Posts

 

Can someone tell me how to use header(location: to open popup widow as the Target)

 

I am trying to use use  javascript that I use in href

 

header("Location: "contact_script_upload.php target='popup'  'msgopen('contact_script_upload.php','popup', 650, 350); return false;'");

 

does not work.

 

any help is greatly appreciated

Link to comment
https://forums.phpfreaks.com/topic/201574-help-with-location-redirect/
Share on other sites

You need to use Javascript. Not a PHP Header(); tag

 

<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=500,left = 433,top = 134');");
}
</script>
</HEAD>
<BODY onLoad="javascript:popUp('test.php')">

 

Hope that helps.

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.