English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-09-28 07:39:55 · 1 answers · asked by JJ 1 in Computers & Internet Programming & Design

I'm working on a online-booking system using checkboxes to select & book the items. If a particular item is booked, the accompanying checkbox will be disabled, thus preventing subsequent bookings. I've tried to search around for the PHP script but in vain.

Thanks to anyone who can help me out! =)

2006-09-28 07:47:43 · update #1

1 answers

Do you want to do it server side, or after the user has loaded the page. To do it server side (the only place you can use PHP to do it) you just need to include 'disabled="disabled" ' in your tag.

If you want to do it after the page has loaded, you will need to use Javascript as that is the only thing that can change HTML after it has loaded. To do it using Javascript - 'document.forms[ 0 ].elements[ 'myCheckbox' ].disabled = true;'

2006-09-28 07:43:51 · answer #1 · answered by John J 6 · 0 0

fedest.com, questions and answers