Reply to Re: [PHP] Upper case problem

Your name:

Reply:


Posted by Georgi Ivanov on 10/03/05 17:54

<?php
$par=$_GET['string'];

if ($par == strtoupper($par)){
//This is uppercase
}
else{
//it is not uppercase
}
?>
On Monday 03 October 2005 16:28, Merlin wrote:
> Hi there,
>
> I am having problems with users who upload text that only contains upper
> case letters. For example "SEARCHING FOR". Is there a way to detect this
> via PHP?` I would like to have the script return him to the form and inform
> him that this is not allowed.
> So basicly I need a sort of regex which does detect upper case letters in a
> row. Has anybody ann idea how such an regex could look like?
>
> Thank you for any hint,
>
> Merlin

[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

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