Results 1 to 2 of 2

Thread: PHP form help

  1. #1
    Join Date
    Jan 2007
    Posts
    181
    Thanks
    5
    Thanked 3 Times in 3 Posts

    Default PHP form help

    after processing the form , rather than redirecting you to a page how would i generate a popup saying "form submitted" or something?


    I did it once or twice but i forgot how



    Thanks!
    Jon

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    at the end of processing put whatever you want to have it say.

    Code:
    <?php
    if($submitted) 
    {
        process();
        if( !$errors )
        {
             echo "Form Submitted";
        }
        else {  goBackToForm() }
    }
    ?>

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
  •