View Full Version : Javascript Submit Form

05-05-2007, 11:24 PM
I would like to get info from a check box via link or other method. I believe it can be done with javascript with code something like follows?? Sugestions on getting this to work

<form id="form1" name="form1" method="post" action="">

<input type="checkbox" name="install" value="checkbox" />
<SCRIPT language="JavaScript">
function submitform()

<? $n=$_Get["checkbox"];printf("$n");?>

05-06-2007, 10:46 AM
Yes, but you need an event (onclick, onchange,...) applied upon an element, event wich will call the function, following the user's action.

Now, which could be that action? Can't you simply use a submit button?