There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware missing monitor network networking outlook outlook 2003 outlook 2007 outlook express password popups problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
contact form multiple double pulldowns


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
Boojo's Avatar
Junior Member with 2 posts.
 
Join Date: Oct 2007
Experience: Intermediate
02-Oct-2007, 12:54 PM #1
contact form multiple double pulldowns
Hi there.
I have a contact form that writes information to a text database file (rather than emailing the results to a recipient). I have used a cgi script, but it's writing to a text file on a windows server. It's called CSVwrite from EZscripting.com (the free version). I have used dreamweaver to create the form.

Here's my problem... and I can only find "double drop down" info on navigation drop downs, not contact form pulldowns like I have.

I would like to have a couple of different instances where there are double pull-downs.
Ie. If they choose, say "colour" from the first menu, then they get "red, brown, etc" as choices in the second menu.
Then, In another "question", they can choose "colour" and get "pale, vibrant, etc" as choices in the second menu.

As well, in another "question", if they choose "other" from the bottom of yet a different pulldown, they get a text entry field to fill in. I know I can just add the text field and put "if other", but is it possible to grey it out unless they choose "other"?

When they hit send, they go back to the same page, rather than to a thank you page.

So here's another question - can I keep the data that was entered the first time when they go back to the page (rather than clearing the form automatically), so that if they want to send almost all the same info, but just change a couple of things, they can?
Ie. "submit and reload"?

Thanks
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,418 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
04-Oct-2007, 07:59 PM #2
Quote:
Originally Posted by Boojo
Here's my problem... and I can only find "double drop down" info on navigation drop downs, not contact form pulldowns like I have.

I would like to have a couple of different instances where there are double pull-downs.
Ie. If they choose, say "colour" from the first menu, then they get "red, brown, etc" as choices in the second menu.
Then, In another "question", they can choose "colour" and get "pale, vibrant, etc" as choices in the second menu.
Ok, I'm not really tracking with you here. Can you post a link to an example?

Quote:
As well, in another "question", if they choose "other" from the bottom of yet a different pulldown, they get a text entry field to fill in. I know I can just add the text field and put "if other", but is it possible to grey it out unless they choose "other"?
Yep, using JavaScript.

Quote:
When they hit send, they go back to the same page, rather than to a thank you page.
I recently did that on a form I created.

Quote:
So here's another question - can I keep the data that was entered the first time when they go back to the page (rather than clearing the form automatically), so that if they want to send almost all the same info, but just change a couple of things, they can?
Ie. "submit and reload"?
Yep, when the form is submitted, you can have the data the user entered passed to the page that gets loaded after the form data is sent. Then, that page can get the data entered on the form and do something with it.

Peace...
Boojo's Avatar
Junior Member with 2 posts.
 
Join Date: Oct 2007
Experience: Intermediate
11-Oct-2007, 03:59 PM #3
What Javascript would that be???
Hi Tomdkat, thanks for replying.
Do you have an example of how to do that? How do I pass the data to that page, as well as passing that data along to the db, which is where it needs to go?

THX

Quote:
Originally Posted by tomdkat
Ok, I'm not really tracking with you here. Can you post a link to an example?

Yep, using JavaScript.

I recently did that on a form I created.

Yep, when the form is submitted, you can have the data the user entered passed to the page that gets loaded after the form data is sent. Then, that page can get the data entered on the form and do something with it.

Peace...
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,418 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
11-Oct-2007, 04:28 PM #4
Quote:
Originally Posted by Boojo
Do you have an example of how to do that? How do I pass the data to that page
I don't have an example using the particular script you're using but I can send you a link to the form I created which does what you're looking for, but using another script.

I would post this question on the CSVwrite help forum:

Can CSVwrite pass form data to a "thank you" page via parameters, like this:

http://www.mysite.com/thankyou.html?name=[name]&email=[email]&field=[value]

If CSVwrite can do that, you're set. You can process those values using JavaScript. If not., you can experiment with having CSVwrite fill-out the "thank you" page such that form fields are pre-filled in.

Peace...
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:13 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.