User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Oct 2006
Posts: 19
Reputation: doraima29 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
doraima29 doraima29 is offline Offline
Newbie Poster

Question need help with dynamic form in asp

  #1  
Oct 26th, 2007
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>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Location: Budapest
Posts: 252
Reputation: fatihpiristine has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 14
fatihpiristine's Avatar
fatihpiristine fatihpiristine is offline Offline
Posting Whiz in Training

Re: need help with dynamic form in asp

  #2  
Nov 2nd, 2007
use java script to do this as dynamic but consider that if java is disabled it will not work... or refresh meta content
Do a favour, leave me alone
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 6:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC