SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Nov 2005
    Posts
    496
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My PHP validation don't kick in when JS is disabled?

    Hello. I've written a form that has JavaScript validation in it, as well as PHP validation - just in case JavaScript is disabled. Well, that's the idea anyhow...

    Thing is, I'm using a onsubmit="return fnc_FormSubmit(this);" attribute in my form tag... It works great, when JavaScript is enabled. But when JavaScript is not enabled, I thought that the browser would bypass this attribute and just submit the form anyway - that way, I thought my PHP validation code would start working... But it don't seem to happen. I know my PHP validation code works, because if I take out that onsubmit attribute altogether, my PHP validation works just fine.

    I'm using FireFox 2 on my Mac.

    Thanks for any help on this.

  2. #2
    SitePoint Evangelist
    Join Date
    Nov 2005
    Posts
    496
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please ignore me... I've sorted it... My own silly mistake. (I should really go to bed now)


Bookmarks

Posting Permissions

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