Hail,
I have a submit button which refers to a function in vbscript which is the following:
<SCRIPT LANGUAGE="VBScript">
Function Accept()
if document.frmtt.txtChrName.value = "" then
Alert("You have not entered a name?"
else
document.frmTT.action = "SavingChr.asp?Player=<%=UID%>&HIT=<%=HIT%>&PAR=<%=PAR%>&DAM=<%=DAM%>&ARM=<%=ARM%>&LIF=<%=LIF%>&WIL=<%=WIL%>&CHA=<%=CHA%>"
end if
end function
</SCRIPT>
So if the user has left the txtChrName field empty, I want to send a warning and NOT submit the document so in other words cancel the submit button's action.
Can this be done?
Phailak
I have a submit button which refers to a function in vbscript which is the following:
<SCRIPT LANGUAGE="VBScript">
Function Accept()
if document.frmtt.txtChrName.value = "" then
Alert("You have not entered a name?"
else
document.frmTT.action = "SavingChr.asp?Player=<%=UID%>&HIT=<%=HIT%>&PAR=<%=PAR%>&DAM=<%=DAM%>&ARM=<%=ARM%>&LIF=<%=LIF%>&WIL=<%=WIL%>&CHA=<%=CHA%>"
end if
end function
</SCRIPT>
So if the user has left the txtChrName field empty, I want to send a warning and NOT submit the document so in other words cancel the submit button's action.
Can this be done?
Phailak