I want to redirent from a php page to html page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sajad Bhat
    New Member
    • Apr 2011
    • 8

    I want to redirent from a php page to html page

    Sir

    I am using a form in HTML (action=mail.ph p), when the user hits the submit button, he goes to mail.hp where i process the form input fields and then i want to redirect to aa page like Thanks.html.

    I used Header , redirect etc but i am getting erros. So anybody can help.

    Thanks
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    In mail.php you could
    Code:
    include 'Thanks.html';

    Comment

    • johny10151981
      Top Contributor
      • Jan 2010
      • 1059

      #3
      What is the spteps you follow?

      lets give you a hint...
      1. Process the email.. //and ofcourse no data has been echoed or printed
      2. redirect to thanks.html by function "header('Locati on:Thanks.html' )"
      3. end of program

      or what?

      Comment

      • Sajad Bhat
        New Member
        • Apr 2011
        • 8

        #4
        Sir

        I am using a form in HTML (action=mail.ph p), when the user hits the submit button, he goes to mail.hp where i process the form input fields and validation too (may echo something), then i want to redirect to a page like Thanks.html.

        I used Header , redirect etc but i am getting erros. So anybody can help.

        Thanks

        Comment

        • sidhx
          New Member
          • Dec 2009
          • 50

          #5
          hey Sajad u cann't redirect if use echo in the same file.
          show the code where u got the problem.

          Comment

          • Bharat383
            New Member
            • Aug 2011
            • 93

            #6
            You could use the header function to redirect to a page at the end.
            Code:
                 <?php header("page1.html");
            Bharat Parmar(Bharat38 3)
            Last edited by Niheel; May 2 '12, 09:56 AM. Reason: bharat, just a little bit of explanation would help a lot, the answer is right though

            Comment

            Working...