Reply
Question for Dreamweaver experts, about building forms?
Old 09-05-2005, 02:01 PM Question for Dreamweaver experts, about building forms?
Junior Talker

Posts: 2
Software: Dreamweaver MX 2004
Project: ASP,VBScript, local testing server Win XP Pro.
My experience: This is my first dynamic web site, went thru couple books and video tutorial’s about ASP.

Little bit about what I am trying to do:
I want o build a registration page for customers. In the registration page person enters his or hers info. Lover in the form from the dropdown menus they select “material status” and from another drop down menu they choose how many “children” thy have. (All this is on one form, I have all needed record sets created, and options from the dropdown menu also are pulled from database)

This is what I am trying to accomplish:
If the person chooses ‘married’ from the “material status” dropdown menu, and he or she has ‘3’ children selected in “Children” drop down menu, after clicking “Next” button at the bottom of the form, I want server generate page with forms for “spouse” and thee forms for “Child #1”, “Child #2”, “Child #3”.
In the simpler words, if the customer in first page chooses ‘Material status’ – “Single”, ‘Children’ – “0”. After clinking next customer will be taken to the page with 4 ‘Children’ forms and no ‘Spouse’ form.

My questions:
How do I connect (tell server) , witch forms to display in next page, and how many times to repeat ‘Children’ form based on the options selected in previous page, from drop down menu’s? Can this be done thru Dreamweaver menus, or it has to be hand coded? Is there Extensions available to help me accomplish this task?
Here is website link, I want to build something similar in ASP: http://www.greencardlotterygroup.com/cgi-bin/main.pl

Please help me. I will appreciate any suggestions, links, suggested books and tutorials.
Thanks a lot.
gint is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-09-2005, 11:11 PM
zkiller's Avatar
Junior Talker

Posts: 4
Location: Bitburg, Germany
why not just use a simple counter inside a loop like this.

Code:
dim i
dim children

'set your counter to 0
i = "0"

'pull the variable defined for children from the previous page
children = request.form("children")

If children > "0" then
   Do While Not i = children 
      'put your form fields for the information you wish to collect for children here.
      'however, only add the fields for one child
      'when naming the fields do something like name=children<%= i %>
      'in case the individual has more than one kid.
      
      i = i +1
   Loop
End If
now if the individual put in that he is married, you would do it very simular, only you could not need the loop, since their is only gonna be one spouse and thereby you obviously won't need the counter.

hope that helps.
zkiller is offline
Reply With Quote
View Public Profile
 
Old 09-13-2005, 08:55 AM Need Help With Forms
GAZ
Junior Talker

Posts: 2
Hi Guys,

I am on the verge of pulling out my hair!

I have devloped a simple form in Dreamweaver MX and I would really like to know how I create a submit button so that when siomeone fills in the form the form is then emailed to me?

HOW ON EARTH DO I CREATE A SUBMIT BUTTON TO BE EMILAED BACK TO ME - PLEASE HELP
GAZ is offline
Reply With Quote
View Public Profile
 
Old 09-13-2005, 02:47 PM
chrishirst's Avatar
Super Moderator

Posts: 19,022
Location: Blackpool. UK
You can't directly

You have to write the code that gets the submitted form data, builds the message up then sends it either using CDONTS ([NT4]IIS4 & [win2k] IIS5) or CDOSYS ([win2k] IIS5, [XP Pro] IIS5.1 & [win2k3] IIS6)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-16-2005, 10:30 PM Forms help desperately needed
Junior Talker

Posts: 3
I am using Dreamweaver and I am not that well versed in script. Is there a way to creat a form and send it as an email without creating script or if someone has an idea of the script to use that would be great. I dont understand what exactly happens when the submit button is hit. Does the form go to the ISP server or the server that has the script, that is probably two different companies yes????? You can tell I am a rookie right???!!!

Thanks in advance for your help.

Have a good one!

bwebmaster41
www.webvisionsmktg.com
bwebmaster41 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Question for Dreamweaver experts, about building forms?
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13838 seconds with 12 queries