Click to See Complete Forum and Search --> : <input type=checkbox onClick="submit();">


CrystalWood
02-11-2003, 01:13 PM
Need help with a form using PHP (server-side) and JavaScript (client-side). Program reads info from database on server and displays form on page. User then finds his/her name and checks the checkbox next to the name, as if saying, "Yes, I acknowledge that I have read this". As soon as the user checks the checkbox, the form should be submitted and update the database, showing they have read this page...

When I use <onClick="submit();"> I get an error saying "object doesn't support this property or method"...

Then why have I found this example on many many websites, and they all say it can be done?

Any help would be appreciated,
CrystalWood

gil davis
02-11-2003, 01:22 PM
Post your whole form. Perhaps someone will be able to tell you what's wrong.

Dan Drillich
02-11-2003, 08:51 PM
It works just fine in this tiny form -


<form name="declaration" action="#" >

<input type=checkbox onClick="submit();">

</form>