The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I don't know why radio buttons give me fits in Javascript, but they do. Argghh... anyway, I'm trying to set up a form in which the user clicks on a radio button, to which a URL is attached, and then they are taken to that URL when they submit the form. Below is a simplified version that works using onClick, but I don't want it to redirect the user when they click on the radio button. I want it to wait until they submit the form. I know this is easy, but I'm braindead right now... I can't seem to get it properly pass the value of "destination" to a separate function. Can anyone help? Thanks!

No luck. It tried it with both "location" and "location.href". The latest incarnation is below. When I submit the form, it tries to assign the value "undefined" to location.href, instead of assigning one of the document names. Any other ideas? Thanks again!