# How can my Submit button call a URL value of a Radio Button?

**URL:** <https://forum.kirupa.com/t/how-can-my-submit-button-call-a-url-value-of-a-radio-button/318668>\
**Category:** programming\
**Created:** [January 26, 2011, 8:59pm UTC](https://forum.kirupa.com/t/how-can-my-submit-button-call-a-url-value-of-a-radio-button/318668 "2011-01-26T20:59:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NavinRH](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@NavinRH](https://forum.kirupa.com/u/NavinRH)\
**Post date:** [January 26, 2011, 8:59pm UTC](https://forum.kirupa.com/t/how-can-my-submit-button-call-a-url-value-of-a-radio-button/318668/1 "2011-01-26T20:59:17Z")

</div>

How would i get the submit button of a form to go to a radio button url value. Ive been trying to find it online but it seems its never happened to anyone before.  
Here is an example :

\<form name=“size” method=“post” action=""\>  
\<input type=“radio” name=“Size21” value="/ShoppingCart.asp?ProductCode=SLI-Dirk-0004"\>  
\<input type=“radio” name=“Size21” value="/ShoppingCart.asp?ProductCode=SLI-Dirk-0005"\>

\<input type=“submit”\>  
\</form\>

Is there some php or cgi that i could write to parse these values to attach as the form action?  
Thanks
