Hi,
Just a quick question:
I am using javascript to submit form results to my email address. The form uses a submit button with the OnClick function. Problem is the button displays the name "Submit Query" in a browser, not simply "Submit" as in dreamweaver. Hope that makes sense.
Can any one help?
This is the script i used:
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function get_radio_value()
{
for (var i=0; i < document.subscribeform.option.length; i++)
{
if (document.subscribeform.option.checked)
{
var rad_val = document.orderform.option.value;
}
//-->
</SCRIPT>
And this is the form:
<form action="mailto:xxxxx@.com?subject=subscription" method=POST name=Subscribeform class="style17" form>
<input type="radio" name="option" value="subscribe"checked>
<span class="style1">Subscribe</span>
<input type="radio" name="option" value="unsubscribe">
<span class="style1">Unsubscribe</span><br>
<input type="text" name="email" value="enter your email..." size="26" onFocus="this.value='';return false;">
<br>
<input type="text" name= name value="enter your name..." size "26" onfocus="this value='';return false;">
<br>
<input type="SUBMIT" onClick="get_radio_value()">
</form>
Thanks,