nagalenoj Posted February 21, 2009 Share Posted February 21, 2009 I have a requirement like the following, I have to have 5 or more text boxes in a form. But, when submitting the form, I have to submit only 2 textbox values. Ofcourse, we can leave the other values when getting the values. But, I need to discard when submitting..., Is it possible? Link to comment https://forums.phpfreaks.com/topic/146222-show-me-the-way-please/ Share on other sites More sharing options...
The Little Guy Posted February 21, 2009 Share Posted February 21, 2009 I'm confused... Link to comment https://forums.phpfreaks.com/topic/146222-show-me-the-way-please/#findComment-767663 Share on other sites More sharing options...
Q695 Posted February 21, 2009 Share Posted February 21, 2009 if there's data in the field do a hidden field, and if there's no data show the textbox? Link to comment https://forums.phpfreaks.com/topic/146222-show-me-the-way-please/#findComment-767678 Share on other sites More sharing options...
jitesh Posted February 21, 2009 Share Posted February 21, 2009 Onsubmit event disable textboxes which you do not want to submit using JS. Disabled fields never posted. Like function onevent(){ document.getElementById('textbox1').disabled = true; } Link to comment https://forums.phpfreaks.com/topic/146222-show-me-the-way-please/#findComment-767679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.