need to open a pop up window and then redirect!

Javascript coding ..

Moderators: macek, egami, gesf

parxal
New php-forum User
New php-forum User
Posts: 40
Joined: Thu Nov 07, 2002 5:58 am

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?

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

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

parxal
New php-forum User
New php-forum User
Posts: 40
Joined: Thu Nov 07, 2002 5:58 am

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 :)


Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 1 guest

cron