Shane,
(modifying code from the URL you gave):
if (checked_items > 5)
{
alert("Please choose only 5 items");
}
else
{
//ints is the name of the form that you want to submit.
document.ints.submit();
}
Ian
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:randomwords@;shaw.ca]
> Sent: Monday, October 21, 2002 4:06 PM
> To: [EMAIL PROTECTED]
> Subject: (clug-talk) Javascript/php
>
>
> Hi.
> Has anybody made a webpage which tests what values have been
> selected on a form with javascript by making a form action =
> onSubmit="testvalues(form_data)";?
> Well I have a whack 'o checkboxes which I can test to see how
> many were checked. That's all good... if more than 5 elements are
> selected you get an alert...
>
> What I don't know is:
>
> if there are less than five, how do you get the form to submit to
> the next page?
>
> Check it out:
>
> http://68.144.65.135/content/interests.php
>
> Thanks,
> Shane
>
>