Current location: Hot Scripts Forums » Programming Languages » PHP » Minimum entry


Minimum entry

Reply
  #1 (permalink)  
Old 01-08-06, 10:46 PM
Vineman Vineman is offline
Wannabe Coder
 
Join Date: Dec 2005
Location: Texas
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Minimum entry

How would I print a message when an input field is less than the ammount of characters I want? This is for a registration script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-08-06, 11:13 PM
Christian's Avatar
Christian Christian is offline
Community VIP
 
Join Date: Mar 2005
Location: ProgrammingTalk
Posts: 2,449
Thanks: 0
Thanked 6 Times in 5 Posts
you have to use strlen.
Something like this:
PHP Code:

if(strlen($_POST['name']) >= '5'){ echo 'Good, your name is longer or equal to five!'; } 

__________________
:: ImperialBB :: New version in the works! :: http://www.imperialbb.com ::

:: Have a question about the board? The Rules? An Infraction/Warning? :: Contact Form ::
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Entry bpo_ccs Job Offers & Assistance 0 01-05-06 06:06 AM
[for hire]Developer 1125/month, Data Entry $5/hr asifbiz Job Offers & Assistance 3 10-09-05 07:38 PM
C#, ASP.net VB.NET, Data Entry & BPO $1120/seat ($7/hr) 160 hours asifbiz Job Offers & Assistance 0 05-03-05 12:50 PM
Data Entry, Cleansing & Form Processing 5-20 seats Available asifbiz Job Offers & Assistance 0 03-10-05 03:09 AM
Competition entry form / random entry draw script with PHP? Tim Smith PHP 0 08-12-04 02:45 AM


All times are GMT -5. The time now is 11:41 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.