You are here: Re: Tick all checkboxes « PHP Programming Language « IT news, forums, messages
Re: Tick all checkboxes

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация