wrong input pop-up message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • underscore
    New Member
    • Jul 2007
    • 30

    wrong input pop-up message

    hello all TSD supporter


    i am using a PHP to develop my page... what i wanted to do in my mind is to have a pop-up message if the user input an invalid data like textbox or list menu in my page.

    pls. show me a sample code...


    thanks. TSD
  • rpnew
    New Member
    • Aug 2007
    • 189

    #2
    Originally posted by underscore
    hello all TSD supporter


    i am using a PHP to develop my page... what i wanted to do in my mind is to have a pop-up message if the user input an invalid data like textbox or list menu in my page.

    pls. show me a sample code...


    thanks. TSD

    Hi,
    I dont know whether you can do this with PHP or not but validation is very easy with small javascript.

    RP

    Comment

    • underscore
      New Member
      • Jul 2007
      • 30

      #3
      Originally posted by rpnew
      Hi,
      I dont know whether you can do this with PHP or not but validation is very easy with small javascript.

      RP
      what i mean if the user has a wrong input in a certain text box in html form. what code in java script i write.

      can you show me a sample code sir?

      Comment

      • ak1dnar
        Recognized Expert Top Contributor
        • Jan 2007
        • 1584

        #4
        Originally posted by underscore
        what i mean if the user has a wrong input in a certain text box in html form. what code in java script i write.

        can you show me a sample code sir?
        How far you have completed on this? what you mean By "wrong inputs" ?
        Its better if YOU can give us an example about your application.

        Comment

        • underscore
          New Member
          • Jul 2007
          • 30

          #5
          Originally posted by ajaxrand
          How far you have completed on this? what you mean By "wrong inputs" ?
          Its better if YOU can give us an example about your application.
          [wrong inputs] i mean i have a textbox in html form which intended for date only but the user input a text. now what should i want if the user input a text when the user press the enter key thr will be an an error message displayed.

          Comment

          • ak1dnar
            Recognized Expert Top Contributor
            • Jan 2007
            • 1584

            #6
            Originally posted by underscore
            [wrong inputs] i mean i have a textbox in html form which intended for date only but the user input a text. now what should i want if the user input a text when the user press the enter key thr will be an an error message displayed.
            You can do it on both client side and server side. Ask the question in the javaScript forum to do it by client side.
            If you need to do the same by server side just refer to do these links.
            PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


            Comment

            Working...