Hi!
You could try something like:
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
function radioCheck(frm){
rad=frm.url;
for (var i=0;i<rad.length;i++){
if(rad[i].checked==true){
frm.action=rad[i].value;
}
}
//maybe other code here for some validation
return true;
}
//-->
</script>
</head>
<body>
<form name="form1" method="post" action="#" onsubmit="return radioCheck(this)">
<input type="radio" name="url" value="one.htm" checked> one.htm<br>
<input type="radio" name="url" value="two.htm"> two.htm<br>
<input type="submit">
</body>
</html>
Cheers - Pit
Bookmarks