seran128 Posted December 7, 2006 Share Posted December 7, 2006 I have a form that has some radio boxes in it. The user press a button and it send the form content to another site. I need to validate the foam data prior to sending to avaoid javascript errors. I would perfer to do this in the same function but if I have to split it up thats fine as well.MY Function isfunction sendform(){ var oRad = document.MainForm.SELECT___FRMBB1___1; for(var i=0; i<oRad.length; i++) { if(oRad[i].checked) { position1=oRad[i].value; } }var oRad1 = document.MainForm.SELECT___FRMBB1___29; for(var i=0; i<oRad1.length; i++) { if(oRad1[i].checked) { header1=oRad1[i].value; } } var name1 = document.MainForm.TEXTBOX___91___FRMBB1___24.value; var date1 = document.MainForm.TEXTBOX___95___FRMBB1___27.value; var url="http://mtsite.com/index.php"url=url+"?topheader="+header1url=url+"&position="+position1url=url+"&name="+name1url=url+"&date="+date1window.open(url); } Quote Link to comment Share on other sites More sharing options...
fenway Posted December 16, 2006 Share Posted December 16, 2006 And what is the question? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.