Results 1 to 4 of 4

Thread: PHP > Submit

  1. #1
    Join Date
    Feb 2008
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default PHP > Submit

    Hi i'm looking for the code for submitting my php.

    Current I have a post method which submits it to an email which works great.

    But when it submits it opens the php page and displays the html on that page.

    What I want is a little pop up box telling the user that the information has been sent rather than them being taken to a html page and having to click back to where they were.

    I've tried a few different things like onclickwindow, but couldn't get it to work.

    Any help would be great.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Try do something like this in your form tag:

    Code:
    <form action="something.php" method="POST" onsubmit="window.open(this.action, 'newwin', 'menubar=1,resizable=1,width=350,height=250'); return false;">
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Feb 2008
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Strange now my php seems to doesn't work.

    I replaced this:

    Code:
    <form action="php/send.php" method="post" class="f-wrap-1" id="contact" >
    with this:

    Code:
    <form action=" php/send.php" method="POST" class="f-wrap-1" id="contact" onsubmit="window.open(this.action, 'newwin', 'menubar=1,resizable=1,width=400,height=250'); return false;">

  4. #4
    Join Date
    Mar 2008
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    post the url please, so that i can help you out

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
  •