Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Post form to popup dans veriform ! HELP !

Status
Not open for further replies.
<script>
function subForm(){
for (x=0; x<document.myForm.elements.length; x++){
if (document.myForm.elements[x].value == &quot;&quot;){
alert(&quot;Please fill in all blanks&quot;)
return false;
}
}
//now that we've checked the form, submit it to new window
formWin = window.open(&quot;about:blank&quot;,&quot;formWin&quot;,&quot;height=420,width=470&quot;)
document.myForm.action = &quot;handler.asp&quot;
document.myForm.method = &quot;post&quot;
document.myForm.target = &quot;formWin&quot;
document.myForm.submit()
}
</script>

<form name=&quot;myForm&quot;>
<input>
<input>
<input type=button value=&quot;Submit&quot; onClick=&quot;subForm()&quot;>
</form>

Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top