Hi,
I have a page with 4 radiobuttons on it and no buttons on it. I want
to post the value of the selected radio button to the other page
without pressing any buttons (with only selecting the radio button)
How can I accomplish this??? I made a code block like below but
couldn't make it work???
Thank you,
Cem Louis
<html>
<head>
</head>
<SCRIPT LANGUAGE="Javas cript">
function Submit(){
document.getEle mentById("form1 ").Submit()
}
</SCRIPT>
<form name="form1" method="post" action="process .php">
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Apple<br>
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Banana<br >
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Peach<br>
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Melon
</form>
I have a page with 4 radiobuttons on it and no buttons on it. I want
to post the value of the selected radio button to the other page
without pressing any buttons (with only selecting the radio button)
How can I accomplish this??? I made a code block like below but
couldn't make it work???
Thank you,
Cem Louis
<html>
<head>
</head>
<SCRIPT LANGUAGE="Javas cript">
function Submit(){
document.getEle mentById("form1 ").Submit()
}
</SCRIPT>
<form name="form1" method="post" action="process .php">
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Apple<br>
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Banana<br >
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Peach<br>
<input name="radiobutt on" type="radio" value="radiobut ton"
onClick="Submit ()">Melon
</form>
Comment