Results 1 to 10 of 10
  1. #1
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    Email checker help
    Hey, I run a piece of jvscript that checks 2 fields (email addresses) to make sure they match before the form is submitted, Everything works. Now the new databsae (of which I have no control over) requires that one variable have a space in it. The jvscript no longer works with this varibale. Any ideas?

    This jvscrip works:

    if (document.eForm.from.value != document.Form.emailaddress1.value){
    alert(entries must match.');
    return false;}

    This does not:

    if (document.eForm.from.value != document.Form.emailaddress 1.value){
    alert('entries must match.');
    return false;}

    TIA!

  2. #2
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    did you try:

    if (document.eForm.from.value != document.Form.emailaddress 1.value){
    alert(entries must match.');
    return false;}
    Ray Thomas
    Webmaster Resources: http://DesignerWiz.com
    ABW Board Category: Programming / Coding
    http://forum.abestweb.com/forumdisplay.php?f=190

  3. #3
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    hey Ray, thanks for chiming in. I did try that and wasn't sure if what you posted was different than the line in my fisrt post but I tried it again and the checker won't work with a space in the variable name. Any ideas on how I can use a different jvchecker or tips to upgrade this would be be awesome!

  4. #4
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Well .... without seeing all the code it's hard to make any recommendations. All I did on your code was to adjust it to be like the working code with the required spacing.

    You can also try an alternate check email address form input script.

    Here's a simple one: http://www.thesitewizard.com/archive/validation.shtml
    Ray Thomas
    Webmaster Resources: http://DesignerWiz.com
    ABW Board Category: Programming / Coding
    http://forum.abestweb.com/forumdisplay.php?f=190

  5. #5
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    Thanks Ray. I quadrupled checked your line of code with my original test one and could not see a difference so I was wondering what was altered. Sorry, eyes are glazing over now.

    Basically, this line works:

    if (document.eForm.from.value != document.Form.emailaddress1.value){
    alert(entries must match.');
    return false;}

    Once I change my form variable from emailaddress1 to emailaddress 1 (with a space) and change this to:

    if (document.eForm.from.value != document.Form.emailaddress 1.value){
    alert(entries must match.');
    return false;}

    Checker no longer works. Hope that clarifies my question and thanks again for your help Ray!

  6. #6
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    For some reason, I can't edit my posts. Not sure what is happeneing but my account here, even though it has over 1,500 posts, has been demoted to newbie status. Can't see all my own posts etc...

    Just wanted to edit that the lines in my last post should be:

    'entries must match.'

    Missed the ' when copying and pasting. But still no go.

  7. #7
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Hi Ian,

    You originally had:

    if (document.eForm.from.value != document.Form.emailaddress 1.value){
    alert('entries must match.');
    return false;}

    Which, compared to original working script did not have alert('entries must match.');

    But had:
    alert(entries must match.');

    So, I was hoping that would correct an otherwise identicle alert message function excluding the name spacing issue document.Form.emailaddress1.value to document.Form.emailaddress 1.value.
    Ray Thomas
    Webmaster Resources: http://DesignerWiz.com
    ABW Board Category: Programming / Coding
    http://forum.abestweb.com/forumdisplay.php?f=190

  8. #8
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    ahh got cha. Yes, the quote was supposed to be in there, sorry about that. I was able to get it to work with variables WITHOUT a space. Guess I will keep looking for other alternatives. Thanks for all your help Ray.

  9. #9
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Glad it all worked out ... the code format that you had showing here didn't look right .. so I only had what you had as "working example" to work with.
    Ray Thomas
    Webmaster Resources: http://DesignerWiz.com
    ABW Board Category: Programming / Coding
    http://forum.abestweb.com/forumdisplay.php?f=190

  10. #10
    Newbie Affiliate Ian's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,540
    Sorry about the bad posting Ray. Unfortunately, with a space in the 2nd email field, the checker does not work. Sorry for the confusion.

  11. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Gator Checker
    By Tami in forum Suspicious Activity!
    Replies: 1
    Last Post: May 29th, 2003, 09:27 AM
  2. Broken Links Checker (URL-checker) in ASP?
    By imbrod in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: March 3rd, 2003, 02:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •