This is a discussion on "too difficult for a noob" within the PHP Forum section. This forum, and the thread "too difficult for a noob are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
too difficult for a noob
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
too difficult for a noob
im trying to design a quote form...and there are certain features i just cant seem to get working by myself.....oh..and im using html, java, and php on my pages.
1. i want a bunch of the fields in the form to be dependant on the first selection.... so default values fill into the fields depending on what i select in the first box... then then can be changed if someone wants. 2. at the bottom... i want an 'add item' button...and want that to basically duplicate the form underneath itself..and move the 'add item' and 'submit' button to the bottom of the forms. 3. i would like the submit button to be dependant on one of the selections... so... if somoene picks a certain sales person as one of their selections... the submit sends it to their email..not just a generic one.. i realize these things may be vague... or extremely difficult... or maybe im just an idiot and theyre easy...but if someoene could help me out either with some snippits of code, or the code i need.. or point me in the right direction..that would be great.. thanks cam |
|
|
|
|||
|
So under item 2 it sounds like you want to be able to add multiple similar items, correct? Like phone number 1, phone 2, phone 3, etc.
Item's 1 and 3 would be handled by javascript (thought 1 could be done with php as well). Item 2 would be php. I'll post some specific links for you once I'm sure I know what you want to do. |
|
|||
|
yeah....similar items like... well..this is for a printing company...so this will be a quote form... so if they pick business cards at the beginning...then a bunch of the fields fill with default values that they can change etc...and then at the bottom... add new item would repeat the whole form again...and they could select another item... like another business card... or a letter head or something
that make any sence? |
|
|||
|
Yes that makes sense. However I can't think of an category that this sort of thing would fit under so I can't find any sample scripts.
This doesn't sound too hard and could be accomplished fairly easily (the PHP could be at least) but there are quite a few ways to handle this. If you have quite a lot of products, then it would make sense to store those in a database. You then simply retrieve your products, put them into the forms and allow the user to add them to a list which you could store as session variables or (even easier) simply keep sending the data back through the form each time. |
|
|||
|
most likely i would just put maybe 7 or 8 items there...and then have an 'other' without any default values or somethin.... cause i just want a few simple things like business cards that are semi filled in for clients when they want a quote..
|
![]() |
| Tags |
| difficult, noob |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Would this be difficult to do | AdRock | Webforumz Suggestions and Feedback | 6 | Nov 6th, 2007 12:42 |
| Is something like this too difficult to create? | andresnav | Introduce Yourself | 7 | Nov 19th, 2006 05:58 |
| Difficult Javascript Problem! | craig | JavaScript Forum | 7 | Dec 7th, 2005 09:36 |
| Noob looking for help | Gamebreaker3233 | Introduce Yourself | 3 | Nov 16th, 2005 04:03 |
| CSS Difficult? | Galaxyblue | Web Page Design | 11 | Jan 27th, 2004 19:18 |