Hi,
I need to make four required fields for a script. But with asp, I don't know how to make it. Someone can help?
script of session:
Session("Erreur")=""
Session("txbNom")=Request.Form("txbNom")
Session("txbPrenom")=Request.Form("txbPrenom")
Session("txbAdresse")=Request.Form("txbAdresse")
Session("txbAdressePostale")=Request.Form("txbAdressePostale")+" "
Session("txbCodePostal")=Request.Form("txbCodePostal")+" "
Session("txbVille")=Request.Form("txbVille")+" "
Session("txbPays")=Request.Form("txbPays")+" "
Session("NatureInscription")=Request.Form("optSujet")
indOk=true
If Request.Form("txbNom") = "" Then
IndOk=false
end if
If Request.Form("txbPrenom") = "" Then
IndOk=false
end if
If Request.Form("txbAdressePostale") = "" Then
IndOk=false
End if
If Request.Form("txbCodePostal") = "" Then
IndOk=false
End if
If Request.Form("txbVille") = "" Then
IndOk=false
End if
Thanks,
Laonei
I need to make four required fields for a script. But with asp, I don't know how to make it. Someone can help?
script of session:
Session("Erreur")=""
Session("txbNom")=Request.Form("txbNom")
Session("txbPrenom")=Request.Form("txbPrenom")
Session("txbAdresse")=Request.Form("txbAdresse")
Session("txbAdressePostale")=Request.Form("txbAdressePostale")+" "
Session("txbCodePostal")=Request.Form("txbCodePostal")+" "
Session("txbVille")=Request.Form("txbVille")+" "
Session("txbPays")=Request.Form("txbPays")+" "
Session("NatureInscription")=Request.Form("optSujet")
indOk=true
If Request.Form("txbNom") = "" Then
IndOk=false
end if
If Request.Form("txbPrenom") = "" Then
IndOk=false
end if
If Request.Form("txbAdressePostale") = "" Then
IndOk=false
End if
If Request.Form("txbCodePostal") = "" Then
IndOk=false
End if
If Request.Form("txbVille") = "" Then
IndOk=false
End if
Thanks,
Laonei