Select all form fields
I'm trying to make a form using PHP as the base, I want a select all option, which i can get to work but if one of the options is unselected it still displays the all selected variable.
I think its a probably an easy fix but have been looking at it to long, any ideas without using one long if statement
form section with select all is radio buttons
zollet posted this at 11:54 — 26th May 2002.
He has: 1,016 posts
Joined: May 2002
If I'm understanding you correctly, I think the best way you can solve this problem is with JavaScript and not PHP.
Take a look at http://javascript.internet.com/buttons/check-all.html
It's probably not exactly what you need, but it might put you on the right track.
Busy posted this at 05:03 — 27th May 2002.
He has: 6,151 posts
Joined: May 2001
Thanks Zollet, I think I was playing with the script to much, what i wanted was already there, i was already checking the values of each but for some stupid reason after adding the select all option, tried adding something i didnt need.
Thanks anyway
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.