+ Reply to Thread
Results 1 to 6 of 6

Thread: How to Parse data from one Form to another

  1. #1
    Join Date
    Jul 2004
    Posts
    2

    Question How to Parse data from one Form to another

    I am trying to create a registration site that will work with multiple forms
    the way I want this script to work for me is as follows

    Page 1 --- Email field and submit (gets forwarded to a page2)
    Page 2 --- 6 personal fields with email field hidden but pre-populated by page 1
    (information gets submited to the database and forwarded to
    Page 3 populating a next form at the same time this would be an offer #2 and it would go to a different database)

    I think that this is a simple way of putting it

    I have read that "GET" will do that for me but when I use redirect it does not post the data in the URL it redirects it clean. If I dont redirect it the good_url
    I do have the data parsed in the URL but than I get the standart formmail thank you page.

    Can any one give me some guidence on this topic


    So far I have not been successful in pre-populating pages and it is becoming essential for what I would like to accomplish

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: How to Parse data from one Form to another

    Hi,

    To get a sequence of HTML pages where pages are populated by previous pages, you must use a program. For example, PHP will do this easily.

    HTML pages are static and cannot accept values from GET or POST.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jul 2004
    Posts
    2

    Default Re: How to Parse data from one Form to another

    I am new to this and I thought that if this script "formmail" is operaing with php

    I am getting confused do I need another PHP program to do this or this can be done with this script.

    Can someone Propose a script that will be able to do this operation

  4. #4
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: How to Parse data from one Form to another

    Hi,

    FormMail is designed to be the end-point of your form submission. It's not designed to be in the middle of a series of forms or HTML pages.

    In theory, we could modify FormMail to work like this:
    Form1 -> FormMail -> Form2 -> FormMail -> Form3 ....
    which is close to what you described. However, each of the Form1, Form2, Form3 still needs to be a program not a static HTML document.

    It's not hard to do, as programming goes, but you will need to understand enough PHP or other scripting language to achieve this.

    The following picture is much the same as above (as far as your work is concerned), and will operate with FormMail unchanged:
    Form1 -> Form2 -> Form3 -> FormMail
    If you're not clear about the above, please feel free to ask more questions, but it sounds like you need a professional web designer or programmer to assist you.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Dec 2004
    Posts
    1

    Default Re: How to Parse data from one Form to another

    Quote Originally Posted by russellr
    Hi,

    FormMail is designed to be the end-point of your form submission. It's not designed to be in the middle of a series of forms or HTML pages.



    In theory, we could modify FormMail to work like this:
    Form1 -> FormMail -> Form2 -> FormMail -> Form3 ....


    which is close to what you described. However, each of the Form1, Form2, Form3 still needs to be a program not a static HTML document.


    It's not hard to do, as programming goes, but you will need to understand enough PHP or other scripting language to achieve this.



    The following picture is much the same as above (as far as your work is concerned), and will operate with FormMail unchanged:
    Form1 -> Form2 -> Form3 -> FormMail


    If you're not clear about the above, please feel free to ask more questions, but it sounds like you need a professional web designer or programmer to assist you.
    I did a search on your forms and see someone elase has tried what I'd like to do - that is have a trhee part form that forwards the data to FormMail. I'm familiar with PHP, Java and Perl, just not sure how to use all to pass on data from one form to another until it is finally submitted to FormMail. Have youe ever seen any one else come up with such a set of scripts?

    TIA
    Michael

  6. #6
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: How to Parse data from one Form to another

    Hi,

    It's quite easy to do this with PHP. Each form has to be a PHP script which grabs the data from the previous form, and forwards it to the next along with the newly submitted data.

    One way is to simply create hidden form fields containing the previous data.

    You might find samples somewhere, but this is really basic programming. If you can't figure it out, you might need to hire someone to do it for you.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Parse error: parse error, unexpected T_VARIABLE in /home/virtual/site4/fst/var/www/ht
    By ben@ct-web.net in forum FormMail Subscription Support
    Replies: 4
    Last Post: 07-Dec-2004, 03:29 AM
  2. html output error and parse errors in php
    By dynamicmedia in forum FormMail Subscription Support
    Replies: 8
    Last Post: 01-Dec-2004, 09:49 PM
  3. POST form data as well as email
    By zippy in forum FormMail Subscription Support
    Replies: 20
    Last Post: 24-Jan-2004, 05:29 PM
  4. Parse error
    By EladFish in forum FormMail Subscription Support
    Replies: 1
    Last Post: 24-Jan-2004, 05:31 AM
  5. not seeing form data
    By brownie in forum FormMail Subscription Support
    Replies: 6
    Last Post: 19-Jan-2004, 02:37 AM

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