Reply to Allowing whitespace when validating form entries

Your name:

Reply:


Posted by roondog on 06/14/07 11:42

I've got a form i'm testing at www.roondogid.co.uk/login/register.php

i've got it all working except it won't let me have any gaps in the gamertag
section.
the code for that section is:

if (eregi ('^[[:alnum:]]{2,15}$', stripslashes(trim($_POST['gamertag'])))) {
$g = escape_data($_POST['gamertag']);
} else {
$g = FALSE;
echo '<p class="error">Please enter your gamertag!</p>';
}

all help appreciated.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация