simon551 Posted April 27, 2007 Share Posted April 27, 2007 hi, I have a text box that serves as a target for a calendar selection pop-up. I need the text box to appear disabled (for all extensive purpose, be disabled) but still be able to send on the info that it gets populated with. Here's my code, works fine to populate the field, but the information is not being submitted. This question is in the grey area of ... is it html or php? <td><input type="text" name="tsdate" value="" id="data" size="12" disabled="true"> <button id="trigger">...</button></td> That button is populating the field. but the data is not being sent. Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/48940-disable-for-input-but-still-storesubmit-data/ Share on other sites More sharing options...
nikkieijpen Posted April 27, 2007 Share Posted April 27, 2007 is the textfield and the button put in a form? <td><input type="text" name="tsdate" value="" id="data" size="12" disabled="true"> <input type="submit" id="trigger" name="trigger"></td> Quote Link to comment https://forums.phpfreaks.com/topic/48940-disable-for-input-but-still-storesubmit-data/#findComment-239783 Share on other sites More sharing options...
simon551 Posted April 27, 2007 Author Share Posted April 27, 2007 yes. If I take the disabled="true" statement out, it submits just fine. Is there maybe another property I need to be using i.e. greyed out=true ? Quote Link to comment https://forums.phpfreaks.com/topic/48940-disable-for-input-but-still-storesubmit-data/#findComment-239826 Share on other sites More sharing options...
fenway Posted April 30, 2007 Share Posted April 30, 2007 Disabled means it won't submit -- you can use onfocus=this.blur if you want. Quote Link to comment https://forums.phpfreaks.com/topic/48940-disable-for-input-but-still-storesubmit-data/#findComment-241791 Share on other sites More sharing options...
john010117 Posted May 2, 2007 Share Posted May 2, 2007 How about: <input type="text" name="tsdate" value="" id="data" size="12" readonly="readonly"> ? Quote Link to comment https://forums.phpfreaks.com/topic/48940-disable-for-input-but-still-storesubmit-data/#findComment-243128 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.