SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Member meow's Avatar
    Join Date
    Oct 2001
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    popup window redirect to another window

    Hi all,

    This is my code for pop up window and then refresh parent window when hit OK.

    PHP Code:
    function user_message($msg$url='') {
      
    html_header();
      
      if(empty(
    $url)) 
           echo 
    "<SCRIPT>alert(\"$msg\");history.go(-1)</SCRIPT>";
      else echo 
    "<SCRIPT>alert(\"$msg\");self.location.href='$url'</SCRIPT>";
      exit;

    How the code will be if after i hit OK then it will redirect to another url(passing along the variable)?

    Thanks.
    Last edited by meow; Sep 8, 2002 at 23:36.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •