Skip navigation
Currently Being Moderated

Redirect PHP form

Feb 21, 2013 5:50 AM

Hi all i have a php contact form, i want to after submission the form is redirect to same page how can i do it.

please help weblink

 
Replies
  • Currently Being Moderated
    Feb 21, 2013 7:12 AM   in reply to manojb05

    The answer is likely in the code for your send_form_email.php file. People here will want to see that before they can know how to help you.

     

    Chris

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 21, 2013 7:32 AM   in reply to manojb05

    Warning:  mysql_connect() [function.mysql-connect]: Access denied for user 'prasanth'@'localhost' (using password: YES) in /home/newtocli/public_html/include/fg_membersite.php on line 733



    Error... But Is Good Job

     
    |
    Mark as:
  • Jim Carpenter
    546 posts
    Apr 6, 2006
    Currently Being Moderated
    Feb 21, 2013 8:56 AM   in reply to manojb05

    Ok, I posted a wrong thing, deleted it and now will try this.

     

    Below this in your code <!--inlude your own success here --> (maybe everything below it)

     

    Replace with:

    <?php
    header
    ('Location: http://www.example.com/');
    exit;
    ?>

     

    replace http://www.example.com for the redirect landing page.

     

    Test to see if that works, as I am not a very good php person.

     

    Jim

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points