Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio Buttons (Beginner)

Status
Not open for further replies.

LongFeiFengWu

Technical User
Nov 9, 2001
98
US
I have a form that is made up of radio buttons. I don't know why I did that since I don't know how to use them. The user clicks the respective radio button and clicks submit. The radio buttons are all value (1). The "groups" of the radio buttons are all different to specify the row in the DB table to which they will need to post their values. Users will be making multiple submissions throughout the day and I also need the "total" column in the table to update each time the user submits that particular selection. Any help will be most appreciated.
 
Okay, I went ahead and tried to do this. This is my HTML code:

<html>

<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<title>New Page 1</title>
<meta name=&quot;Microsoft Theme&quot; content=&quot;zero 111&quot;>
</head>

<body>
<form method=&quot;POST&quot; action=&quot;EmailType.asp&quot; target=&quot;main&quot;>
<p align=&quot;center&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><b>Email Type</b></p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; value=&quot;Error&quot; checked name=&quot;Type&quot;></p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Complaint&quot;>Complaint</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Local Calling Area Inquiry&quot;>Local
Calling Area Inquiry</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Product Inquiry&quot;>Product
Inquiry</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Product Order Request&quot;>Product
Order Request</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Product Cancel Request&quot;>Product
Cancel Request</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Disconnect Line Request&quot;>Disconnect
Line Request</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Affiliate_Misdirect&quot;>Affiliate/Misdirect</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Repair Issue&quot;>Repair
Issue</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Billing Question&quot;>Billing
Question</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Winback&quot;>Winback</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Pending Order Inquiry&quot;>Pending
Order Inquiry</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Product Support Inquiry&quot;>Product
Support Inquiry</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Website Trouble&quot;>Website
Trouble</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Reply&quot;>Reply</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Online Billing Inquiry&quot;>Online
Billing Inquiry</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Registration Inquiry&quot;>Registration
Inquiry</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Duplicate Email&quot;>Duplicate
Email</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Billing Party_Billing Address Change&quot;>Billing
Party/Billing Address Change</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Created Email&quot;>Created
Email</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;radio&quot; name=&quot;Type&quot; value=&quot;Other&quot;>Other</p>
<p align=&quot;left&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;>&nbsp;</p>
<p align=&quot;center&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;><input type=&quot;submit&quot; value=&quot;Submit&quot; name=&quot;B1&quot;></p>
</form>
<p align=&quot;center&quot; style=&quot;line-height: 100%; margin-top: 0; margin-bottom: 0&quot;>&nbsp;</p>
</body>

</html>

It's pretty simple. Just a form with radio buttons.

This is the asp script i've started:

<!--#Include file=&quot;Includes/OpenDBConnections.asp&quot; -->
<%

objrec.open &quot;TypeData&quot;,objcon,3,3

objrec.addnew

objrec(&quot;date&quot;)=date
objrec(&quot;UserID&quot;)=request.cookies(&quot;ECT&quot;)(&quot;UserID&quot;)
objrec(&quot;Type&quot;)=request.form(&quot;Type&quot;)= &quot;error&quot;
objrec(&quot;type&quot;)=request.form(&quot;Type&quot;)=&quot;complaint&quot;

objrec.update

%>
<!--#Include File=&quot;Includes/CloseDBConnections.asp&quot;-->

I have absolutely no idea what this script should look like. Any help will be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top