Solved

Emailing form with radio button set as read-only?

Posted on 2002-06-15
5
199 Views
Last Modified: 2012-05-04
I am emailing a form and need to know how to make this radio button read only.

HTML = HTML & "<input name=""ampm"" type=""radio"" id=""ampm"" value=""am""" & IsChecked("ampm", "am") & ">"
0
Comment
Question by:Rexx
  • 3
5 Comments
 
LVL 1

Expert Comment

by:raid999
ID: 7080886
What do you mean by read only?
0
 

Author Comment

by:Rexx
ID: 7080902
When emailing a form you probably would not want the person getting the email to be able to make changes to the form.  Using an input it would like this:

HTML = HTML & "<input name=""caddress"" type=""text"" id=""caddress"" readonly=""true"" value=""" & Request("caddress") & """ size=94 maxlength=100>"

and this works.  However, using a radial button I cannot seem to use readonly=""true"".  I've tried it in several places of radial code but after emailing it I can still manipulate the yes to a no.  You see, if yes is selected, I want the selected yes to stay that way without the person getting the emailed form to be able to manually change it to a no.

Hope this helps.
0
 

Author Comment

by:Rexx
ID: 7080904
Here is the entire radial code.  I have the readonly inserted but it doesn't work.

If Request("ampm") = "am" Then
HTML = HTML & "<input name=""ampm"" type=""radio"" id=""ampm"" value=""am""" & IsChecked("ampm", "am") & ">"
HTML = HTML & "</font></td>"
HTML = HTML & "<td align=""left"" valign=""bottom"" width=""87""><font size=2 face=""Arial"">PM"
HTML = HTML & "<input name=""ampm"" type=""radio"" id=""ampm"" readonly=""true"" value=""pm""" & IsChecked("ampm", "pm") & ">"
HTML = HTML & "</font></td>"
end If
0
 
LVL 33

Accepted Solution

by:
hongjun earned 50 total points
ID: 7080975
Try using the disabled property.

Example

<input type="radio" name="radio1" readonly="true" value="first" checked disabled>First
<br>
<input type="radio" name="radio1" value="second" disabled>Second


hongjun
0
 

Author Comment

by:Rexx
ID: 7081001
Inserting
disabled
works

Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now