Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How to pass form data to another form.

How to pass form data to another form.

Scheduled Pinned Locked Moved Web Development
javascriptphphtmlcomxml
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    esebagel
    wrote on last edited by
    #1

    Hi there, I am truly frustrated and as usual scoured the internet looking for the answer I could understand before posting on this forum. This is what I am looking to do but I know of one restraint. I have a registration form (regform.html) that gets filled out to sign up for a class, this form then sends the person's name to a Splash screen of sorts that says "Thank you "so and so" for registering for our class" and then I get an email with the registration. From the regform.php file they have the option to print an invoice. What I would like to accomplish is that the form info on the registration form is passed to the invoice. This saves the "User" from having to enter the same data twice. The constraint that I have been made aware of is that I can't nest two forms in one. Does that make any sense? I have tried some iterations of what I wanted to do, but to no avail. The files that I use are www.ahtcsonline.com/regform.html, then it passes info to www.ahtcsonline.com/regform.php (here is the option for the User to fill out the Invoice)at www.ahtcsonline.com/invoice.html. The input field id's are consistent from the invoice.html as the regform.html file thinking that this would be the only logical way to pass the data. I was also thinking that maybe I had to dump the regform data to a text file or an xml file and then import it to the invoice.html file. My background is that I started from scratch last September and have clawed my way to where my website is now. I have to used books and the internet to get here...oh and an occasional post. I like to try to figure things out on my own, but this could be out of my grasp....especially that evil thing called "javascript". If somebody could please help me sort this out, I would be very grateful, Evan

    N 1 Reply Last reply
    0
    • E esebagel

      Hi there, I am truly frustrated and as usual scoured the internet looking for the answer I could understand before posting on this forum. This is what I am looking to do but I know of one restraint. I have a registration form (regform.html) that gets filled out to sign up for a class, this form then sends the person's name to a Splash screen of sorts that says "Thank you "so and so" for registering for our class" and then I get an email with the registration. From the regform.php file they have the option to print an invoice. What I would like to accomplish is that the form info on the registration form is passed to the invoice. This saves the "User" from having to enter the same data twice. The constraint that I have been made aware of is that I can't nest two forms in one. Does that make any sense? I have tried some iterations of what I wanted to do, but to no avail. The files that I use are www.ahtcsonline.com/regform.html, then it passes info to www.ahtcsonline.com/regform.php (here is the option for the User to fill out the Invoice)at www.ahtcsonline.com/invoice.html. The input field id's are consistent from the invoice.html as the regform.html file thinking that this would be the only logical way to pass the data. I was also thinking that maybe I had to dump the regform data to a text file or an xml file and then import it to the invoice.html file. My background is that I started from scratch last September and have clawed my way to where my website is now. I have to used books and the internet to get here...oh and an occasional post. I like to try to figure things out on my own, but this could be out of my grasp....especially that evil thing called "javascript". If somebody could please help me sort this out, I would be very grateful, Evan

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Correct, you can't nest forms. This is not a difficult problem. You could pass the values to the second form via query string, set a cookie, post to the other form, or use a database and retrieve the info from it. Basically, from the sounds of it, you need to spend a good deal more time learning before tackling this problem.


      I know the language. I've read a book. - _Madmatt

      E 1 Reply Last reply
      0
      • N Not Active

        Correct, you can't nest forms. This is not a difficult problem. You could pass the values to the second form via query string, set a cookie, post to the other form, or use a database and retrieve the info from it. Basically, from the sounds of it, you need to spend a good deal more time learning before tackling this problem.


        I know the language. I've read a book. - _Madmatt

        E Offline
        E Offline
        esebagel
        wrote on last edited by
        #3

        I agree that I need to read more, but as a business owner trying to do many things at once...it's not always an easy balance. I did some reading on "Setting cookies"...I will try to read a bit more to figure it out. Rest assured I don't take posting my problems lightly as I know that others are quite busy too. Thank you for your thoughts.

        N 1 Reply Last reply
        0
        • E esebagel

          I agree that I need to read more, but as a business owner trying to do many things at once...it's not always an easy balance. I did some reading on "Setting cookies"...I will try to read a bit more to figure it out. Rest assured I don't take posting my problems lightly as I know that others are quite busy too. Thank you for your thoughts.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          esebagel wrote:

          as a business owner trying to do many things at once

          No offense to you, but I've found in my experience the ones who try to be both business owner and learn to be a developer eventually fail at both.


          I know the language. I've read a book. - _Madmatt

          E 1 Reply Last reply
          0
          • N Not Active

            esebagel wrote:

            as a business owner trying to do many things at once

            No offense to you, but I've found in my experience the ones who try to be both business owner and learn to be a developer eventually fail at both.


            I know the language. I've read a book. - _Madmatt

            E Offline
            E Offline
            esebagel
            wrote on last edited by
            #5

            Mark Nischalke wrote:

            No offense to you, but I've found in my experience the ones who try to be both business owner and learn to be a developer eventually fail at both.

            Mark, I am not a developer, just working to make my website more User friendly. As a business owner I am sure you will agree that multitasking is a integral part of perpetuating our business. We wear many hats, some fit us better then others, but just throwing away a hat because it doesn't fit is not in my character. Thank you for your help.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups