+ Reply to Thread
Results 1 to 8 of 8

Thread: Form Validation Using PHP.. Help

  1. #1
    whizynix02's Avatar
    whizynix02 is offline x10Hosting Member whizynix02 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    95

    Form Validation Using PHP.. Help

    Hello every one..

    I need a contact us form that has a validation for:
    • empty values
    • numbers only
    • input length
    • email address
    • strip html tags
    • enable and disable a field when i click a radio botton
    i've encoded some of it but i seems that it does not jive together. hmm like my email validation php and validation on fields like text box and radio button does not jive in. Can i ask for some help ..

    thanks in advance..
    think big, think Smart

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Form Validation Using PHP.. Help

    Why don't you post some of your code so that we can suggest additions/modifications?
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    kbjradmin's Avatar
    kbjradmin is offline x10 Elder kbjradmin is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Washington State, USA
    Posts
    512

    Re: Form Validation Using PHP.. Help

    use spry by adobe; its not php, its javascript; but i think it will do what you want.

  4. #4
    TheMan177 is offline x10 Sophmore TheMan177 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    179

    Re: Form Validation Using PHP.. Help

    Quote Originally Posted by kbjradmin View Post
    use spry by adobe; its not php, its javascript; but i think it will do what you want.
    Client-side validation is only to improve user experience. You still must validate input on the server.

  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Form Validation Using PHP.. Help

    Quote Originally Posted by TheMan177 View Post
    Client-side validation is only to improve user experience. You still must validate input on the server.
    Well, his last request

    Code:
    enable and disable a field when i click a radio botton
    does seem to be client side.

    It would be nice to know if he actually wants to strip all HTML codes or just 'sanitize' them.

    By 'numbers', are 14 14.1 and 1.41e3 all ok?

    Empty values and input length can be considered the same think. First strip leading/trailing white space and then take the length. If it is zero, it is an empty value.
    Last edited by descalzo; 08-17-2009 at 07:16 PM.
    Nothing is always absolutely so.

  6. #6
    whizynix02's Avatar
    whizynix02 is offline x10Hosting Member whizynix02 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    95

    Re: Form Validation Using PHP.. Help

    Quote Originally Posted by garrettroyce View Post
    Why don't you post some of your code so that we can suggest additions/modifications?

    Sorry for the late reply. Yeah, i'll organize first the codes and fields that i need. thanks in advance.
    think big, think Smart

  7. #7
    lhyman's Avatar
    lhyman is offline x10 Sophmore lhyman is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    198

    Re: Form Validation Using PHP.. Help

    My Name is Larry Hyman from Montreal. I fix computers on site, see my web site for more details:

    http://hyman.sytes.net

  8. #8
    whizynix02's Avatar
    whizynix02 is offline x10Hosting Member whizynix02 is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    95

    Re: Form Validation Using PHP.. Help

    Quote Originally Posted by lhyman View Post

    Thank you for this link.. I will take a good look on it.

    Thank you again.
    think big, think Smart

+ Reply to Thread

Similar Threads

  1. php form
    By garrensilverwing in forum Programming Help
    Replies: 10
    Last Post: 04-27-2009, 09:09 PM
  2. currently have an application pending php
    By biomasti in forum Free Hosting
    Replies: 1
    Last Post: 09-03-2008, 01:58 PM
  3. php contact form in flash not working.
    By eddbrown in forum Free Hosting
    Replies: 2
    Last Post: 08-13-2008, 03:16 PM
  4. Easy XHTML form validation using PHP
    By Xemnas in forum Tutorials
    Replies: 0
    Last Post: 01-08-2008, 04:29 AM
  5. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 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
x10hosting free hosting for the masses
dedicated servers