Answered
Pass through Url
I have a form where the user has an option of clicking submit
which submits the entire form or select a some abcdefg... which
submits the selected alpha and passes through a URL. The problem
now is that I want the user to select a radio button which tells me
the DB they want to search.
How wiould I pass the value of the radion button through url to know the users seacr option?
I Need to put the value from the javascript in the URL and pass the Value to the next form
<a href="/admin/Leadsresult.cfm?search=a" onclick="return checkradio();">A</a>
This my script which I want to submit the value when user clicks the above
function checkradio()
{
var check =document.b.criteria.value;
if (check ==1)
{
document.b.checkoption.value ='Cp';
}
else
{
document.b.checkoption.value ='Cb';
}
document.form.action="sult.cfm";
document.form.submit();*/
}
How wiould I pass the value of the radion button through url to know the users seacr option?
I Need to put the value from the javascript in the URL and pass the Value to the next form
<a href="/admin/Leadsresult.cfm?search=a" onclick="return checkradio();">A</a>
This my script which I want to submit the value when user clicks the above
function checkradio()
{
var check =document.b.criteria.value;
if (check ==1)
{
document.b.checkoption.value ='Cp';
}
else
{
document.b.checkoption.value ='Cb';
}
document.form.action="sult.cfm";
document.form.submit();*/
}
