Hi
I want to see if user enter their email address correctly in txtbox or not.. not sure how to check
here my code:
<form name="form" id="form" method="post" action="">
<p><strong>Customer Login:</strong></p>
<p>Username:
<input type=text name=username />
<!-- this name of textbox in form,this is used by the script to assign values to variables -->
</p>
i hardcoded.
email="vbscript@tip.com"
i want to see if user miss @ symbol then give it error
here is my code:
Instr(“vbscript@tip.com”, “@”)
if request("username")<> Instr then
response.write "error"
else
response.write "thank you"
end if
But i am not sure if it right or wrong? how am i going to check if user enter @ or not using instr function?
thanks
I want to see if user enter their email address correctly in txtbox or not.. not sure how to check
here my code:
<form name="form" id="form" method="post" action="">
<p><strong>Customer Login:</strong></p>
<p>Username:
<input type=text name=username />
<!-- this name of textbox in form,this is used by the script to assign values to variables -->
</p>
i hardcoded.
email="vbscript@tip.com"
i want to see if user miss @ symbol then give it error
here is my code:
Instr(“vbscript@tip.com”, “@”)
if request("username")<> Instr then
response.write "error"
else
response.write "thank you"
end if
But i am not sure if it right or wrong? how am i going to check if user enter @ or not using instr function?
thanks