C
Cem Louis
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="Javascript">
function Submit(){
document.getElementById("form1").Submit()
}
</SCRIPT>
<form name="form1" method="post" action="process.php">
<input name="radiobutton" type="radio" value="radiobutton"
onClick="Submit()">Apple<br>
<input name="radiobutton" type="radio" value="radiobutton"
onClick="Submit()">Banana<br>
<input name="radiobutton" type="radio" value="radiobutton"
onClick="Submit()">Peach<br>
<input name="radiobutton" type="radio" value="radiobutton"
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="Javascript">
function Submit(){
document.getElementById("form1").Submit()
}
</SCRIPT>
<form name="form1" method="post" action="process.php">
<input name="radiobutton" type="radio" value="radiobutton"
onClick="Submit()">Apple<br>
<input name="radiobutton" type="radio" value="radiobutton"
onClick="Submit()">Banana<br>
<input name="radiobutton" type="radio" value="radiobutton"
onClick="Submit()">Peach<br>
<input name="radiobutton" type="radio" value="radiobutton"
onClick="Submit()">Melon
</form>