Results 1 to 3 of 3

Thread: closing the window after mailing

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    277

    closing the window after mailing

    im using the function mail() to send an email to someone

    I want to close the window after sending the email.

    PHP Code:
    if(mail("$to","$subject","$message","$header"){
    close the window
    }
    else{
    ...


  2. #2
    Fanatic Member Gimlin's Avatar
    Join Date
    Dec 2001
    Location
    Hell
    Posts
    734
    <script language="Javascript">
    function CloseWindow()
    {
    self.close();
    }
    </script>

    I think thats what u want.

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Although in IE, that code will cause a confirmation window to pop up if the window you are closing was not opened through code.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width