Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

need to open a pop up window and then redirect!

Javascript coding ..

Moderators: macek, egami, gesf

need to open a pop up window and then redirect!

Postby parxal » Mon Jun 21, 2004 6:32 am

My php file need to open a pop window and the redirects for another page.

page1.php is called
then popup.htm is open
page1.php redirects for page2.php

Is this possible? any help?
parxal
New php-forum User
New php-forum User
 
Posts: 40
Joined: Thu Nov 07, 2002 5:58 am

Postby gesf » Mon Jun 21, 2004 11:01 pm

Use javascript!
Example:
Code: Select all
<php
// This is your php code
// Example:

$A = 'http://yoursite.com';

?>

<!-- It´s now open for html, javascript... -->
<head>
<script language="JavaScript1.1">location.replace("<?php echo $A; ?>");</script>
</head>

<?php
// Php code again!

die();
?>


Cheers,
Gesf
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Thanks

Postby parxal » Tue Jun 22, 2004 6:20 pm

Thanks a lot!
that solved my problem :) keep replying to php-forum , you have done a good job :)
parxal
New php-forum User
New php-forum User
 
Posts: 40
Joined: Thu Nov 07, 2002 5:58 am


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.