Ok, here is my situation:

When the user chooses either 4x6 or 5x7 picture size they must select additional pictures via checkboxes (not a problem). After they have selected the additional pictures and press submit, all the information needs to be displayed in the shopping cart (problem). In order for the shopping cart to know what pictures were selected they need to be added to the end of the url http://globalhopemarket.foxycart.com.

I have the following script that gets the value of the selected checkboxes:



<script type="text/javascript">
<!--
function get_check_value()
{
var c_value = "";
for (var i=0; i < document.orderform.picture.length; i++)
{
if (document.orderform.picture[i].checked)
{
c_value = c_value + document.orderform.picture[i].value + "\n";
}
}
}
//-->
</script>



My html page contains the following:

<form name="packageform">

<input type="checkbox" value="128" name="picture" class="foxycart" />
<input type="checkbox" value="127" name="picture" class="foxycart" />
<input type="checkbox" value="125" name="picture" class="foxycart" />
<input type="checkbox" value="126" name="picture" class="foxycart" />
<input type="checkbox" value="123" name="picture" class="foxycart" />
<input type="checkbox" value="124" name="picture" class="foxycart" />
<input type="checkbox" value="122" name="picture" class="foxycart" />
<input type="checkbox" value="121" name="picture" class="foxycart" />
<input type="checkbox" value="120" name="picture" class="foxycart" />
<input type="checkbox" value="119" name="picture" class="foxycart" />
<input type="checkbox" value="118" name="picture" class="foxycart" />

<input type="submit" class="foxycart" onclick="get_check_value()"/>
</form>


Currently, this is correctly adding the values of the selected checkboxes to the local url, but I need to specify the url to be http://globalhopemarket.foxycart.com instead.

You can view the current page here: http://my360lab.com/global/index.php...ttest/courage/ select the 5x7 option and the other pictures will slide down(its not pretty cause I'm still working on it).

To clarify, clicking submit currently sends you to http://my360lab.com/global/index.php...13&picture=115 and it needs to send you to http://globalhopemarket.foxycart.com...13&picture=115

The purpose of this is to tell the shopping cart what pictures were selected.

Iím sure there is a simple solution but I canít find it for the life of me (my javascriptís not too hot).

Thanks in advance for your help!