Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Need help with email validation

Community Beginner ,
Oct 20, 2011 Oct 20, 2011

Copy link to clipboard

Copied

I have an asp form with the following code:

<p><form action="aspform.asp"  formname="myform" method="post" >

              <p><span class="style11">email</span>:

                <input name="firstname" type="hidden" value='<%=session("firstname")%>' />

                <input name="lastname" type="hidden" value='<%=session("lastname")%>' />

                <input name="acct" type="hidden" value='<%=session("acct")%>' />

                <input name="password" type="hidden" value='<%=session("password")%>' />

                <input name="coupon" type="hidden" value='<%=session("coupon")%>' />

                <input name="textfield" type="required" class="style1" id="textfield" size="50" />

                <span class="style6 style2">

                              <input type="submit" name="Submit" id="Submit" value="Submit" />

The last field "textfield" is for entry of an email address.  How can I validate that without creating a separate form?  I need to keep all of the fields in tact as they pass on to my "aspform.asp" which posts the data to a database.

Any help would be appreciated.

TOPICS
Server side applications

Views

471
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 20, 2011 Oct 20, 2011

Copy link to clipboard

Copied

LATEST

Just add server side code conditional statement that evaluates the field and then flags it on error, otherwise process the data. If you need more details then we need to know exactly what you mean by "validate" and need to see the entire script.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines