Moo Web Directory and SEO Forum Help
Supporting the Moo Community with SEO, Programming, Design, Hosting and E Commerce Development
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
How can I check.........

 
Post new topic   Reply to topic    Moo Web Directory and SEO Forum Help Forum Index -> PHP, ASP, MYSQL
View previous topic :: View next topic  
Author Message
dev123
Forum Noob


Joined: 13 Jan 2009
Posts: 1

PostPosted: Tue Jan 13, 2009 8:09 am    Post subject: How can I check......... Reply with quote

hi all,

How can I check a value entered in a field on my form is a number?

Thanks
--------------------------------
http://www.infysolutions.com
web site design and maintenance
Back to top
View user's profile Send private message
CaptainMoo
Site Administrator


Joined: 11 Aug 2007
Posts: 103
Location: Edinburgh, Scotland

PostPosted: Sat Jan 31, 2009 12:02 am    Post subject: Reply with quote

set it as integer only
_________________
Captain Moo - Site Administrator
Moo Directory - Moovin On Up
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Peeko
Forum Frequenter


Joined: 11 Feb 2009
Posts: 4

PostPosted: Wed Feb 11, 2009 12:06 pm    Post subject: Reply with quote

Easiest solution is to use is_int()

http://uk.php.net/is_int
Back to top
View user's profile Send private message MSN Messenger
Michal Right
Forum Addict


Joined: 15 Jan 2009
Posts: 89
Location: UK

PostPosted: Wed Jun 10, 2009 8:08 am    Post subject: Reply with quote

I think its a nice question.
Back to top
View user's profile Send private message Visit poster's website
surreypcsupport.com
Forum Addict


Joined: 28 Nov 2008
Posts: 91
Location: Surrey

PostPosted: Wed Jun 10, 2009 1:12 pm    Post subject: Reply with quote

Peeko wrote:
Easiest solution is to use is_int()

http://uk.php.net/is_int


Not much help if the number is decimal. Use Chr() and check that the characters are int the range for numbers and a decimal.

Ofcourse if you use number formatting then you need to check for , too.
Back to top
View user's profile Send private message Visit poster's website
chengwong
Forum Noob


Joined: 10 Jun 2011
Posts: 1

PostPosted: Fri Jun 10, 2011 9:23 am    Post subject: Reply with quote

Good question. But if you want to check Value of a Website then i have a best site. checkwv dot com provides full info of a website.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Moo Web Directory and SEO Forum Help Forum Index -> PHP, ASP, MYSQL All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Back to Moo Directory - Back to Cozy Digital
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP