I want my entire form to be disabled.
This will be used simply to show a user what they filled out. I don't want them to be able to edit it or anything. So how do I go about disabling a form?
disable fields
Moderator: General Moderators
disable fields
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- J_Iceman05
- Forum Commoner
- Posts: 72
- Joined: Wed Aug 03, 2005 10:52 am
- Location: Las Vegas, NV
2 ways
I am not sure if there is a way to disable the entire form in just 1 line of code, or maybe even 2.
but within each input tag you can add ' readyonly ' or ' disabled="true" '
Example:
the only difference i can see between the 2 ways, is that in IE "disabled" greys out the box and "readonly" does not
hope that answers your question fully
but within each input tag you can add ' readyonly ' or ' disabled="true" '
Example:
Code: Select all
<input type="text" name="name" value="<php echo $_POST['name']?>" disabled="true">
or
<input type="text" name="name" value="<php echo $_POST['name']?>" readonly>hope that answers your question fully
That works beautifully. Thanks.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.