I am trying to reduce the number of pages a user has to click through in a shopping cart system. I have created a radio button group to be able to redirect the user right to the product page they want so they can build their product. The problem I am having is that I need to hard code a link into the redirect array and all of the links in the cart system are javascript links (shown below). Once you enter the cart system (viewing products), a unique session id is also created (and needed) and I am not sure how to create one (will probably have to contact the cart system company so it is generated on page load of the radio button group). current java links in cart system reference page is http://s235614563.onlinehome.us/thephototouch/gift_catalog.html?catalog[category_id]=636034 url's are formatted below <a href="javascript:GoToProductApp('category', 'item_id=1234')"> Code (markup): Here is the current radio button group <form id="productarray" name="producttype" method="post" action="direct-order.php"> <label><input type="radio" name="product" value="item1234" /> $13.99</label> <label><input type="radio" name="product" value="item1235" /> $15.99</label> <input name="submit" type="submit" value="submit" /> </form> Code (markup): If I could hard code links the redirect page code would look like this <?php $id = $_POST['product']; $links = array( "item1234" => "http://www.example.com/link1", "item1235" => "http://www.example.com/link2", ); header("Location:".$links[$id]); exit; ?> Code (markup):