•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 456,574 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,597 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1474 | Replies: 1 | Solved
![]() |
•
•
Join Date: Oct 2006
Posts: 19
Reputation:
Rep Power: 3
Solved Threads: 0
Hi,
I need some help completing a dynamic form done in asp. I will put the code shown below:
Things that need to be considered:
1. Sending this form via email, and output will show after user types his/ her input.
2. Radio buttons are constructed-- so the message and type of suggestion is shown on email.
This also sends the email to the appropriate person like
Janie G, HR Manager -- jg@company.com
3. Checkboxes can be chosen either one or two-- and shows what is selected on body of email.
4. Textarea -- this is the area where comments and suggestions are entered, and shown to the person that it addresses to.
I will be including the HTML and ASP code in here. Thank you for your suggestions and advice.
----------------------------------------------------------------------------------------------
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%
dim suggestions
suggestions=Request.Form("suggestions")
%>
<title>Avanquest North America Suggestion Box</title>
</head>
<body>
Today's date is: <%response.write(date())%>.
<br>
The server's local time is: <%response.write(time())%>.
<!--Fields that need to be filled out by user-->
<form action="demo_simpleform.asp" method="post">
Your name: <input type="text" name="fname" size="20" />
<br /><br />
Email Address: <input type="text" name="email" size="20" />
<br /><br />
<!--user needs to check one or more people to give their suggestions, comments, etc..-->
To Whom do you want to contact your suggestions, comments and other ideas:<br/>
<input type="checkbox" name="person" value="Janie Guersney, Human Resources Manager"
<%if instr(fruits,"Janie Guersney") then Response.Write("checked")%>>
Janie Guersney, Human Resources Manager
<br>
<input type="checkbox" name="person" value="Roger Bloxberg"
<%if instr(fruits,"Roger Bloxberg") then Response.Write("checked")%>>
Roger Bloxberg
<br>
<input type="checkbox" name="person" value="Todd Helfstein"
<%if instr(fruits,"Todd Helfstein") then Response.Write("checked")%>>
Todd Helfstein
<br /><br />
<!--More choices coming up with checkboxes-->
<!--Types of suggestions starts here-->
Please check what type of suggestion,comments or any concern:<br/>
<input type="radio" name="suggestions"
<%if cars="Employee Satisfaction" then Response.Write("checked")%>
value="Employee Satisfaction">Employee Satisfaction</input>
<br />
<input type="radio" name="suggestions"
<%if suggestions="Employee Recognition" then Response.Write("checked")%>
value="Employee Recognition">Employee Recognition</input>
<br />
<input type="radio" name="suggestions"
<%if suggestions="Comments" then Response.Write("checked")%>
value="Comments">Comments</input>
<br />
<input type="radio" name="suggestions"
<%if suggestions="Cultural Events" then Response.Write("checked")%>
value="Cultural Events">Cultural Events</input>
<br />
<input type="radio" name="suggestions"
<%if suggestions="Other" then Response.Write("checked")%>
value="Other">Other</input>
<br /><br />
<input type="submit" value="Submit" />
</form>
<!--End of dynamic suggestion box-->
</body>
</html>
I need some help completing a dynamic form done in asp. I will put the code shown below:
Things that need to be considered:
1. Sending this form via email, and output will show after user types his/ her input.
2. Radio buttons are constructed-- so the message and type of suggestion is shown on email.
This also sends the email to the appropriate person like
Janie G, HR Manager -- jg@company.com
3. Checkboxes can be chosen either one or two-- and shows what is selected on body of email.
4. Textarea -- this is the area where comments and suggestions are entered, and shown to the person that it addresses to.
I will be including the HTML and ASP code in here. Thank you for your suggestions and advice.
----------------------------------------------------------------------------------------------
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%
dim suggestions
suggestions=Request.Form("suggestions")
%>
<title>Avanquest North America Suggestion Box</title>
</head>
<body>
Today's date is: <%response.write(date())%>.
<br>
The server's local time is: <%response.write(time())%>.
<!--Fields that need to be filled out by user-->
<form action="demo_simpleform.asp" method="post">
Your name: <input type="text" name="fname" size="20" />
<br /><br />
Email Address: <input type="text" name="email" size="20" />
<br /><br />
<!--user needs to check one or more people to give their suggestions, comments, etc..-->
To Whom do you want to contact your suggestions, comments and other ideas:<br/>
<input type="checkbox" name="person" value="Janie Guersney, Human Resources Manager"
<%if instr(fruits,"Janie Guersney") then Response.Write("checked")%>>
Janie Guersney, Human Resources Manager
<br>
<input type="checkbox" name="person" value="Roger Bloxberg"
<%if instr(fruits,"Roger Bloxberg") then Response.Write("checked")%>>
Roger Bloxberg
<br>
<input type="checkbox" name="person" value="Todd Helfstein"
<%if instr(fruits,"Todd Helfstein") then Response.Write("checked")%>>
Todd Helfstein
<br /><br />
<!--More choices coming up with checkboxes-->
<!--Types of suggestions starts here-->
Please check what type of suggestion,comments or any concern:<br/>
<input type="radio" name="suggestions"
<%if cars="Employee Satisfaction" then Response.Write("checked")%>
value="Employee Satisfaction">Employee Satisfaction</input>
<br />
<input type="radio" name="suggestions"
<%if suggestions="Employee Recognition" then Response.Write("checked")%>
value="Employee Recognition">Employee Recognition</input>
<br />
<input type="radio" name="suggestions"
<%if suggestions="Comments" then Response.Write("checked")%>
value="Comments">Comments</input>
<br />
<input type="radio" name="suggestions"
<%if suggestions="Cultural Events" then Response.Write("checked")%>
value="Cultural Events">Cultural Events</input>
<br />
<input type="radio" name="suggestions"
<%if suggestions="Other" then Response.Write("checked")%>
value="Other">Other</input>
<br /><br />
<input type="submit" value="Submit" />
</form>
<!--End of dynamic suggestion box-->
</body>
</html>
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- asp.net helpdesk form (ASP.NET)
- dynamic form filling (PHP)
- create dynamic reports in asp.net (ASP.NET)
- Storing dynamic form values in Arrays for display & insert (PHP)
- asp form action script (Site Layout and Usability)
- Help with asp form will not display contact information (ASP)
- Need help in design and javascript code for Dynamic form (JavaScript / DHTML / AJAX)
- Understanding ASP classes (ASP Tutorials)
Other Threads in the ASP Forum
- Previous Thread: need help how to add multiple email addresses on a radio button
- Next Thread: How to access DOM table objects in an iframe with VBScript


Linear Mode