Welcome to Web Hosting Forum - Net Hosting Talk

Register now and be part of our community! When you register with the Net Hosting Talk you can join in with topics, start new topics, and generally be a part of the first level of our community. It's also quick and totally free, so what are you waiting for?

Is it possible to POST/Submit an Input Checkbox that is disabled?

Antoniorth

Newbie
Messages
1
Reaction score
0
Hello,

I have a checkbox that, given certain conditions, needs to be disabled. It turns out HTTP doesn't post disabled inputs. How can I get around that?
 

worcester

Newbie
Messages
4
Reaction score
0
To get "readonly" look and POST checkbox's value at the same time, just add a hidden "input" with the same name and value as your checkbox. You have to keep it next to your checkbox or between the same <form></form> tags:

You don't have permission to view the spoiler content. Log in or register now.

Also, just to let you know readonly="readonly", readonly="true", readonly="", or just READONLY will NOT solve this!
 

Advertisement

Top