tags:

views:

68

answers:

2

I'm looking for an attribute like checked="checked" for checkboxes which i can echo out in php..

+2  A: 

That would be checked="checked"

David Dorward
thats what i though, but it's not working?
Haroldo
ah got it, it was because i have multiple forms using the same "name" attribute one one page
Haroldo
is there anyway i can get this to work?
Haroldo
ok im just gonna use php rand() to stop inputs overriding, as its admin side. thanks
Haroldo
+2  A: 
<?php echo 'checked="checked"'; ?>
dotty