Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vincent DeCapite 64 posts 83 karma points
    Jun 14, 2011 @ 20:11
    Vincent DeCapite
    0

    Form Validation XSLT

    Hi There,

    I have an xslt file that outputs a form onto a webpage. I was wondering if anyone could give me guidance on how I would add some validation to the form fields so that the E-mail address had to be an E-Mail and First name only had characters A-Z. I tried Regular Expressions but had no luck. Any help would be greatly appreciated.

    Thank You. My code is posted below.

    <

     

    p>

    <

     

    label>

    <

     

    strong>Name:</strong>

    </

     

    label>

    <

     

    input type="text" name="Full Name" />

    </

     

    p>

    <

     

    p>

    <

     

    label>

    <

     

    strong>Company Name:</strong>

    </

     

    label>

    <

     

    input type="text" name="Company Name" />

    </

     

    p>

    <

     

    p>

    <

     

    label>

    <

     

    strong>*Email:</strong>

     

    </

     

    label>

     

     

    <input type="text" Value="[email protected]" class="text default-value" name="Email Address" />

    </

     

    p>

    <

     

    p>

     

     

    <input type="submit" value="Send" /></p>

  • Sean Mooney 131 posts 158 karma points c-trib
    Jun 15, 2011 @ 14:05
    Sean Mooney
    0

    Take a look at jQuery Validate http://docs.jquery.com/Plugins/validation

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies