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>

Member Avatar for fatihpiristine

use java script to do this as dynamic but consider that if java is disabled it will not work... or refresh meta content

use java script to do this as dynamic but consider that if java is disabled it will not work... or refresh meta content

Hi,

I do not agreed with you. Any way, your points of view make me thinking about some thing for my project.

Pls try to keep posting.
We also find them more same at: Employee satisfaction
Tks and best regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.