form validation

  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post November 19th, 2007, 3:03 am

hi guys
i am making a contact form. There is text field to insert contact number.

Now here i am looking for the validation of text field. That user can only enter numbers only no words.

how do i do this, That user is allowed to enter number only at "contact number" text field.

thanks
:)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 19th, 2007, 3:03 am

  • JasonStanley
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Nov 15, 2007
  • Posts: 124
  • Loc: London, England
  • Status: Offline

Post November 19th, 2007, 5:18 am

Whoops, didn't realize this was in a flash forum.
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post November 19th, 2007, 5:27 am

not working or may be i am not understanding the php codes.

problem is solved. Just embed the fonts Numericals [0....9] .

that's fine but i am looking solution via scripts also.

thanks
  • montyt
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 27, 2007
  • Posts: 275
  • Status: Offline

Post November 19th, 2007, 12:37 pm

problem solved

textName.restrict = "0-9";

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 48 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.