944,196 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Marked Solved
  • Views: 2494
  • ASP RSS
Oct 26th, 2007
0

need help with dynamic form in asp

Expand Post »
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>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
doraima29 is offline Offline
19 posts
since Oct 2006
Nov 2nd, 2007
0

Re: need help with dynamic form in asp

use java script to do this as dynamic but consider that if java is disabled it will not work... or refresh meta content
Reputation Points: 6
Solved Threads: 19
Posting Whiz in Training
fatihpiristine is offline Offline
283 posts
since Sep 2007
Sep 30th, 2010
0
Re: need help with dynamic form in asp
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vegetablevn is offline Offline
3 posts
since Aug 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Sql injection tutorial
Next Thread in ASP Forum Timeline: Upload CSV





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC