| | |
Form select Data to HTML Template
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2009
Posts: 10
Reputation:
Solved Threads: 0
Hi,
I have a calculating order form, which is at
http://www.bcdcoatings.com/orderform.htm which I partially inherited.
The problem is that the second drop down "select item" was added, and is not part of the calculation, in order to get needed information to an html template for emailing the order information.
Right now it is possible to have the "widget" choice be the wrong one (not corresponding with the select size choice,) in that you could have a "widget1" show up at the price of a "widget2" which is not good.
Is there a way to report two values, or another value of information from the 3rd drop down? This would eliminate the need for the second.
OR how do I require the second drop down "select item" selection is made, and it corresponds to the proper selection in the third "select size."
All of the lines can not be required though, as the user may not be ordering more than one item.
Obviously I'm not a programmer, I am actually a hardware/network tech. This is in my lap to deal with though.
Any help is appreciated.
Thanks
I have a calculating order form, which is at
http://www.bcdcoatings.com/orderform.htm which I partially inherited.
The problem is that the second drop down "select item" was added, and is not part of the calculation, in order to get needed information to an html template for emailing the order information.
Right now it is possible to have the "widget" choice be the wrong one (not corresponding with the select size choice,) in that you could have a "widget1" show up at the price of a "widget2" which is not good.
Is there a way to report two values, or another value of information from the 3rd drop down? This would eliminate the need for the second.
OR how do I require the second drop down "select item" selection is made, and it corresponds to the proper selection in the third "select size."
All of the lines can not be required though, as the user may not be ordering more than one item.
Obviously I'm not a programmer, I am actually a hardware/network tech. This is in my lap to deal with though.
Any help is appreciated.
Thanks
The added <select> has no part in the calculation, its values are all text, so the code where changing the text <select> chanes recalculates the form is not enough
changing the text select item is supposed to change the price values in the size <select> there needs to be another javascript to do so
something like
where populate() is a javascript that populates the <select><option>s named
this link goes to one available for download, might give you an insight into the code you require
changing the text select item is supposed to change the price values in the size <select> there needs to be another javascript to do so
something like
html Syntax (Toggle Plain Text)
<TD style="height: 28px; width: 120px;"> <SELECT onChange="populate("price2");calculate();" name="item2" style="width: 133px"> <OPTION value="widget1">widget 1 <OPTION value="widget2">widget 2 <!--snip--> </SELECT></TD>
this link goes to one available for download, might give you an insight into the code you require
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: May 2009
Posts: 10
Reputation:
Solved Threads: 0
•
•
•
•
The added <select> has no part in the calculation, its values are all text, so the code where changing the text <select> chanes recalculates the form is not enough
changing the text select item is supposed to change the price values in the size <select> there needs to be another javascript to do so
something like
where populate() is a javascript that populates the <select><option>s namedhtml Syntax (Toggle Plain Text)
<TD style="height: 28px; width: 120px;"> <SELECT onChange="populate("price2");calculate();" name="item2" style="width: 133px"> <OPTION value="widget1">widget 1 <OPTION value="widget2">widget 2 <!--snip--> </SELECT></TD>
this link goes to one available for download, might give you an insight into the code you require
Cooter
![]() |
Similar Threads
- how to receive data from html form...? (HTML and CSS)
- get data from HTML form (Java)
- ASP / CDOSYS - Performance issue (ASP)
- html template help (HTML and CSS)
- Display php data in html div (PHP)
- Copying Select Data From one EXCEL Sheet to Another (Visual Basic 4 / 5 / 6)
- data outside the html tag (VB.NET)
- a blank form to insert data???? (Visual Basic 4 / 5 / 6)
- how to select null values in condition (MySQL)
Other Threads in the PHP Forum
- Previous Thread: Using Curl without PHP to test on web applications
- Next Thread: Restrict the user to cant move backward in Explorer
| Thread Tools | Search this Thread |
apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date display dynamic echo email error fcc file files folder form forms freelancing function functions google href htaccess html image include incode insert integration ip javascript joomla limit link login mail match menu method mlm mod_rewrite multiple mysql oop pageing pagerank paypal pdf php problem query radio random recursion recursiveloop remote script search server sessions sms smtp soap source space sql strip_tags subversion support! survey syntax system table template tutorial undefined update upload url validator variable video virus web window.onbeforeunload=closeme; youtube






