too difficult for a noob

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.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 4th, 2004, 16:47
Cam Cam is offline
New Member
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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

  #2 (permalink)  
Old Feb 4th, 2004, 17:28
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
  #3 (permalink)  
Old Feb 4th, 2004, 17:51
Cam Cam is offline
New Member
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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?
  #4 (permalink)  
Old Feb 4th, 2004, 20:41
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
  #5 (permalink)  
Old Feb 4th, 2004, 20:47
Cam Cam is offline
New Member
Join Date: Feb 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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..
  #6 (permalink)  
Old Feb 4th, 2004, 22:15
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
In that case you might as well hardcode the values instead of using a database.
Closed Thread

Tags
difficult, noob

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 18:34.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43