Menu

Help with form

Help
2007-02-22
2013-06-03
  • airwolfdirectuk

    airwolfdirectuk - 2007-02-22

    Hi,

    I have created a basic form that captures the following
    Name
    Address line1
    Address line2
    Address line3
    Postcode
    email address

    This is captured into mysql and i can see the results.
    What im trying to achieve is the user fills the details in and after they hit submit it generates a populated membership form with all the details they provided ready to print off (or converts it into a file for them to download) and hand in. Is this possible? If so can somone point me in the right direction or provide an example i can study.

    Many thanks

    Rob

     
    • TNTEverett

      TNTEverett - 2007-02-22

      Did you create your form with a ThankYou page?
      If so you have something like this at the bottom of the process.php file:

      <!-- This is the content of the Thank you page, be careful while changing it -->

      <h2>Thank you!</h2>

      <table width=50%>
      <tr><td>FirstName: </td><td> <?php echo $FirstName; ?> </td></tr>
      <tr><td>LastName: </td><td> <?php echo $LastName; ?> </td></tr>
      <tr><td>Email: </td><td> <?php echo $Email; ?> </td></tr>
      </table>
      <!-- Do not change anything below this line -->

      You can cut and paste this code into your favorite html editor and modify the look and feel (populated membership form) to your liking.  When you are done, cut and paste the new code back to the same location as the original and you are done. 

      If you have chosen to forward your visitors after submit you can change this to first display the result then forward the user with a continue button.  There are many possibilities to how you display the form information and/or forward users after clicking submit. 
      If you still need help, make another post to this message. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.