Hi Zoho,
I have a checkbox on my html page, and when its checked I'd like to add its value to a List I've created before.
Right now this is the script:
htmlpage test_page(VarListParam)
displayname = "test page"
content
<%{
List = {"Bike", "Car", "Motor","Helicopter"};
VarList = List();%>
<form action="" method="get"
>
<%for each EachVeh in List
{%>
<input type="checkbox" name="vehicle" id="myCheck" value=<%=EachVeh%>onclick=VarList.add(EachVeh)>I have a <%=EachVeh%><br>
<%}%>
<input type="submit" value="Submit" >
</form>
<%}%>
When I click on "Sumbit" I get the vehicle values on the URL, but not in the "VarList" list - as a parameter, and before the #Page - so I can't even use them :(
If I make "Car" and "Bike" I get :
Now, basically I just need the list of vehiles chosen (in this case- "Car,Bike").
Any idea how I can get those?
Thanks
Ravid