?
Solved

Emailing form with radio button set as read-only?

Posted on 2002-06-15
5
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

800 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