|
Posted by Jerry Stuckle on 10/15/24 11:39
Paul Morrison wrote:
> Hi,
>
> I have a set of 4 checkboxes and I want to have a button that will check all
> the boxes. I have looked on Google but can only find examples of it being in
> Javascript. Is there any way of doing it in a php file. If not, how do I go
> about using a Javascript file? Do I have to make a reference to it in the
> php?
>
> Cheers,
>
> Paul
>
>
Paul,
PHP is server side, not client side. You can do it with PHP - but that
would mean submitting the file back to PHP and regenerating the entire
page with the checkboxes checked.
Much easier to do it in Javascript, which is client-side. And no, you
don't have to reference the javascript in the PHP file.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|