Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. javascript validation & how to use in php

javascript validation & how to use in php

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
javascriptphpmysqltutorial
3 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umeshdaiya
    wrote on last edited by
    #1

    hi i am using php with apachi and mysql with dreamcoder 1. if i am not enter date in my date filed than message incorrect value in my application user can leave this field blank how to do this. 2. i want that user can only input numeric value in my phone filed. 3. email validation and tell me how to use this in php. :-D

    P R 2 Replies Last reply
    0
    • U umeshdaiya

      hi i am using php with apachi and mysql with dreamcoder 1. if i am not enter date in my date filed than message incorrect value in my application user can leave this field blank how to do this. 2. i want that user can only input numeric value in my phone filed. 3. email validation and tell me how to use this in php. :-D

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      If you want the validation to be done client-side, before the form is submitted, then use JavaScript. If you want the validation to be done server-side, after the form is submitted but before the data is processed, then use PHP. Once you have decided which of these options to use, look on the Internet where you'll find a plethora of examples for both methods. Regards, --Perspx

      "I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
      "Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds

      1 Reply Last reply
      0
      • U umeshdaiya

        hi i am using php with apachi and mysql with dreamcoder 1. if i am not enter date in my date filed than message incorrect value in my application user can leave this field blank how to do this. 2. i want that user can only input numeric value in my phone filed. 3. email validation and tell me how to use this in php. :-D

        R Offline
        R Offline
        Ranjit Viswakumar
        wrote on last edited by
        #3

        Form validation using Javascript is a browser-side function. You aren't really using PHP to do this. At max, PHP is used to generate Javascript calls. This is the code that I use on my sites and it works very well- http://webcheatsheet.com/javascript/form_validation.php[^] Good luck! Ranjit Viswakumar Professional Services Specialist rviswakumar@hostmysite.com HostMySite.com [^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups