•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 455,992 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,796 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 886 | Replies: 2 | Solved
![]() |
hi
i want to insert the textbox content to database....wen i give disabled="true" data is not getting inserted in database....when there is no disabled attribute it is getting inserted.....
<form name="fm3">
<table>
<tr>
<td>splendor Id</td><td><input type="text" name="id3" size="20" disabled="true" value=<?php print "$_SESSION[uname]";?>></td>
</tr>
<tr>
</table>
</form>
i want to insert the textbox content to database....wen i give disabled="true" data is not getting inserted in database....when there is no disabled attribute it is getting inserted.....
<form name="fm3">
<table>
<tr>
<td>splendor Id</td><td><input type="text" name="id3" size="20" disabled="true" value=<?php print "$_SESSION[uname]";?>></td>
</tr>
<tr>
</table>
</form>
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 240
Dont disable it. make it readonly.
<input type="text" name="name" value="somevalue" readonly> .
<input type="text" name="name" value="somevalue" readonly> .
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- how to disable Copy/Cut/Paste on a textbox? (Python)
- How to Enable and disable controls in .aspx page using javascript? (JavaScript / DHTML / AJAX)
- How to disable a hyperlink or a textbox or a command button? (PHP)
- Unwanted data injected into datagrid textbox (ASP.NET)
- Forms authorization, only want a few links (ASP.NET)
- "enter" event (C#)
Other Threads in the PHP Forum
- Previous Thread: syntax error, unexpected T_STRING
- Next Thread: How to give print option from the search page?



Linear Mode