Hi There, I need some help creating a html cookie that collects information from a registration form I created in HTML. I then need to take that information and populate another form which is an invoice. So far I haven't been able to accomplish this on my own because I have the Regform.html, which already post info to a regform.php (this is what generates an email to me with the registration info). It is on that regform.php form they have the option to have a invoice created. Since I get nest forms together I have to use this cookie method. The html cookies I have found online have not given me anything more then the generic cookie in which to place on someones pc. No knowledge of JS doesn't help. These are the fields below that need to link from the regform.html to the invoice.html form. I just realized that I have multiple lines on the invoice for multiple registrants but the same is not true on the regform. Even if I could get the first group of info to carry over, I could then edit the regform to add multiple registrants on the next lines. www.ahtcsonline.com/regform.html www.ahtcsonline.com/regform.php www.ahtcsonline.com/invoice.html Which Class: -drop down- Date of Class: # of Attendees: -drop down- Attendee Name: E-Mail: Company: Address: City: State: -drop down- Zip: Phone:
esebagel
Posts
-
Creating a html cookie -
How to pass form data to another form.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.
-
How to pass form data to another form.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.
-
How to pass form data to another form.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
-
javascript calculation total not workingHi Boro_Bob, I really appreciate the information. Last August I lost my job and then decided that I would do my own thing. I knew I needed a website so I started working on it. I knew absolutely nothing about HTML. Little by little I have learned along the way and I borrowed lots of code I found on the net but only employed it if I could get it to work. Instructions varied so if it worked great if not I moved on. Javascript...not a clue. But again I scoured the internet to make my column add up and tried many different iterations. I should have known what you said to be true about the code being case sensitive...as it is true for HTML. During the course of building my website I had decided to capitalize the first letter of the file names when I was done editing so I could keep track of what was done. Lesson learned, never capitalize the "I" in index.html or it will give you a 404 Error code and the Home page won't work.LOL. My web page has been about scope creep, every time I get something to work I then think of something to make it better. For instance, the columns adding up now works great...my next idea was to have drop downs with the 3 or so varying amounts I charge for my online classes. You know I had to try it but since I don't know squat about JS I gave up my idea. Again I want to say "thank you" for explaining that JS was case sensitive. I tried like hell to figure it out on my own and that never dawned on me. Evan Einhorn www.AHTCSonline.com
-
javascript calculation total not workingDave, I could hug you...or just give you five! Thank you and the previous person, Jason for all of your efforts. I hate to ask for help, but there was no way I was going to get this one. Sometimes I come up with these ambitious ideas but with no way to implement them. Thank you very much, Evan Einhorn
-
javascript calculation total not workingHi There Jason, I wished it worked, I was really hoping but nothing calculated when I hit the "calculate" button. I want you to also know that I have tried so many iterations before I asked for help. I am very tenacious and still looked on the net after my submission. Wish I knew what I was doing but I truly think that the subject is over my head. Although I did create my website from scratch back in August and I knew nothing of HTML...not that I know that much now ;) Thank you for trying, Evan
-
javascript calculation total not workingSorry for posting in the wrong area. I corrected this by post in the suggested area of Web Development. Thank you for correcting me. Evan
-
javascript calculation total not workingHi there, I really hope you can help I have worked on this all day today and last night. I can't get the Total box to calculate. I am trying to create an online invoice for my customer to print from my web page. I have scoured the internet looking for some help, but it doesn't help that I am clueless about javascript. This is what I have tried: In my table, all I want to happen is for the user to type in a price in the Amount boxes and then have a total at the bottom. Seems pretty basic, but I just don't understand why it won't work (not really sure of what I am doing) Can somebody please help me? The form itself can be found at www.ahtcsonline.com/invoice.html - the source is too much to copy so it may be easier to view the form and then view the source code underneath it. Thank you in advance, Evan <script type="text/javascript"> function totalamountdue(){ { var amount, amount2, amount3, amount4, amount5, amount6, amount7, amount8, amount9, amount10; Amount = document.Invamt.Amount.value; Amount2 = document.Invamt.Amount2.value; Amount3 = document.Invamt.Amount3.value; Amount4 = document.Invamt.Amount4.value; Amount5 = document.Invamt.Amount5.value; Amount6 = document.Invamt.Amount6.value; Amount7 = document.Invamt.Amount7.value; Amount8 = document.Invamt.Amount8.value; Amount9 = document.Invamt.Amount9.value; Amount10 = document.Invamt.Amount10.value; Total = document.Invamt.Total.value; document.Invamt.Total.value = (amount + amount2 + amount3 + amount4 + amount5 + amount6 + amount7 + amount8 + amount9 + amount10); } } </script>
-
javascript calculation total not workingI can't get the Total box to calculate. I am trying to create an online invoice for my customer to print from my webpage. I have scoured the internet looking for some help, but it doesn't help that I am clueless about javascript. This is what I have tried: In my table, all I want to happen is for the user to type in a price in the Amount boxes and then have a total at the bottom. Seems pretty basic, but I just don't understand why it won't work (not really sure of what I am doing) Can somebody please help me? The form itself can be found at www.ahtcsonline.com/invoice.html Thank you in advance, Evan <script type="text/javascript"> function totalamountdue(){ { var amount, amount2, amount3, amount4, amount5, amount6, amount7, amount8, amount9, amount10; Amount = document.Invamt.Amount.value; Amount2 = document.Invamt.Amount2.value; Amount3 = document.Invamt.Amount3.value; Amount4 = document.Invamt.Amount4.value; Amount5 = document.Invamt.Amount5.value; Amount6 = document.Invamt.Amount6.value; Amount7 = document.Invamt.Amount7.value; Amount8 = document.Invamt.Amount8.value; Amount9 = document.Invamt.Amount9.value; Amount10 = document.Invamt.Amount10.value; Total = document.Invamt.Total.value; document.Invamt.Total.value = (amount + amount2 + amount3 + amount4 + amount5 + amount6 + amount7 + amount8 + amount9 + amount10); } } </script> </head> <table width="738" border="1"> <tr class="Title-centered"> <td width="214" align="left"><div align="center"><strong>Name of Attendee</strong></div></td> <td width="229"><div align="center"><strong>Description</strong></div></td> <td width="118"><div align="center"><strong>Amount</strong></div></td> </tr> <tr> <td><div align="center"><span class="style15"> <input name="name" type="text" class="Input_box" id="name" size="40" /> </span></div></td> <td><div align="center"><span class="style12"> <select name="select_class" class="Input_box" id="select_class"> <option selected="selected">--Select a Class-- </option> <option>TRACS 202c</option>