Skip to main content
Inspiring
September 27, 2006
Question

Help with this error anyone?

  • September 27, 2006
  • 6 replies
  • 412 views
How do you disable a checkbox if the value in the database is = to r or a or d. Im using access and .asp
This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Inspiring
September 27, 2006
If using XHTML -

<input name="foo" type="checkbox" value="whatever" <% if(value='r' or
value='d' or value='a') then response.write('disabled="disabled") %> />

If using HTML, change "/>" to ">".

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"lands1ide" <webforumsuser@macromedia.com> wrote in message
news:efe7tq$b1n$1@forums.macromedia.com...
> How do you disable a checkbox if the value in the database is = to r or a
> or d. Im using access and .asp


lands1ideAuthor
Inspiring
September 27, 2006
I tryied this but i get the following error

Microsoft JScript compilation error '800a03ee'

Expected ')'

/systems/lvcc/January/January.asp, line 204

if(value='r' or

Any ideas?

This is what my code looks like
<input name="1st" type="checkbox" value="R" <% if(value='r' or
value='d' or value='a') then response.write('disabled="disabled") %> />