Solved

Emailing form with radio button set as read-only?

Posted on 2002-06-15
5
196 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
Comment Utility
What do you mean by read only?
0
 

Author Comment

by:Rexx
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Inserting
disabled
works

Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
X-Frame-Options - click-jacking 7 46
Summer note focus on load 19 186
Out the count variables 6 48
SQL Server Web Traffic Limitations 4 42
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

15 Experts available now in Live!

Get 1:1 Help Now