Hi
i have 10 texboxes,
to check the value of each textbox from database wheither it empty(null) or not empty and depending upon value, button is enabled/disabled, if one of them texbox have value (not null/not empty) then button will enable otherwise it disabled.
Web_2 0 Newbie Poster
Recommended Answers
Jump to PostAre your 'textboxes' in different rows or columns?
Do you have 10 rows, each with a 'textbox' in?
Please provide information to how your databse is structured, as it is key to how we write the script to solve the problem
Matt
Jump to PostHi,
You may loop for all such values and can set button property accordingly. with editing of mattsters's answer, script can be something like below:
$flag = true; for ($i=1; $i<=26; $i++) { if(!not_null($result[0]['Heamogram_'.$i])) { $flag = false; break; } } if ($flag == false) $property = …
Jump to Postyou're going to want to do this client side (js) so that you can detect when a user has input text into one of the boxes
//my sudo code (write your own code) func boxchanged() { if has value set enabled else call checkboxes() } func checkboxes() …
All 12 Replies
mattster 195 Practically a Master Poster Featured Poster
Web_2 0 Newbie Poster
mattster 195 Practically a Master Poster Featured Poster
mattster 195 Practically a Master Poster Featured Poster
Web_2 0 Newbie Poster
phpuser 1 Junior Poster in Training
Web_2 0 Newbie Poster
jstfsklh211 79 Light Poster
Web_2 0 Newbie Poster
mattster 195 Practically a Master Poster Featured Poster
Web_2 0 Newbie Poster
mattster 195 Practically a Master Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.