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 Post
<?php if(!not_null($result[0]['Heamogram_26'])){echo "disabled";}?>
Jump to PostOr this will do the same thing:
<?php if(!not_null($result[0]['Heamogram_26'])){echo "disabled='disabled'";}?>
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.