Hi all,
I am looking to pass a javascript array that is created by the user (through checking different boxes and populating the array with id numbers) to a php script which this uses the id's in the array to make url calls. I am having difficulty passing the array to the script. I've tried many different ways of passing it but I decided to just ask for help instead of wasting more of my time on something I'm just starting to learn. Here's the snippet of code where I try to pass the array:
<form name="input" action="compare.php?id=graphs" method="get">
<input type="submit" value="Compare" />
</form>
where graphs is an array of id's. I'm aware this isn't proper syntax, but I'm assuming this is possible to do. I know that php is server side code and js is client side but since I am not executing the php script until after the page has been loaded I think I can still pass in a js array, right? Any help would be appreciated.