Click to See Complete Forum and Search --> : Pre-check PHP checkbox input


LarryS
08-13-2006, 05:39 PM
How can I modify this PHP entry (which works as is) to be pre-checked?

print"<input type=\"checkbox\" value=\"{$email}\" name=\"emails[]\">{$name}</input><br /> \n";

Thanks,
--Larry

NogDog
08-13-2006, 06:03 PM
Add checked='checked' to the input tag.

LarryS
08-13-2006, 07:00 PM
Thanks!