Pass Form Value on Click

Hi All,
How can I pass the value of a Checkbox when it is clicked to a hidden value in another form on the page?
And if there is more then one checkbox clicked it will pass all checked values.
[210 byte] By [BeachBum] at [2007-11-20 11:49:50]
# 1 Re: Pass Form Value on Click
[ moved ]
PeejAvery at 2007-11-10 3:56:00 >
# 2 Re: Pass Form Value on Click
This will have to be done on the server-side. Remember that a checkbox only passes the data to the server-side form handler (php, asp, etc) if it is checked at the time of submission. So all you have to do is check it, and then echo it right into the value of the hidden <input> tag.

PHP example
<?php
$variable = @$_POST['variablename'];
?>

<input type="hidden" name="whatever" value="<?php echo $variable ?>" />
ASP example

<%
dim variable
variablename = Request.QueryString("variablename")
if not variablename = "" and not isnull(variablename) then
variable = variablename
else
variable = ""
end if
%>
PeejAvery at 2007-11-10 3:57:00 >