need to open a pop up window and then redirect!

Javascript coding ..

Moderators: egami, macek, gesf

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

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: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

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
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

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

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests