Processing form but showing another page...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Luongo
    New Member
    • Oct 2006
    • 22

    Processing form but showing another page...

    Hi, I have a form that, when submitted, needs to be processed by one file (survey.php) but have another page (thankyou.php) displayed. Because I don't have access to the former, I can't combine the two which would obviously be the best thing. What's the best way therefore to accomplish this? Would a meta-refresh do the trick or would that simply redirect to the thankyou page without processing? Thanks for your help....
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    It depends on what survey.php is doing after having checked the form. Is it passing control back to you or is it going wandering off to do some more processing?

    Question is, do you get control at any time after survey.php has processed the form?
    Another: is it your form that submits to survey.php. If so, you could, before submitting it, open a new screen window and display the thank-you page there.

    Ronald :cool:

    Comment

    • Luongo
      New Member
      • Oct 2006
      • 22

      #3
      Hi Ronald,

      The purpose of the survey.php file is just to verify the fields and insert the values into mysql. This is what the form submits to, ie action="survey. php". This file does have its own content output with a thank you message, however I do not want it displayed at all as it contains a different layout than I'm using for the form. So basically I'd like to combine the processing of the one file with the display of another....

      Comment

      Working...