
June 30th, 2000, 07:44 AM
|
|
Contributing User
|
|
Join Date: Jun 2000
Location: London, England
Posts: 64
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
I want to check for blank spaces in an input box. Here is the code I'm working with but I'm not sure of the correct syntax:
<?
if ($Location == " ")
{
echo "<p>The filename contains invalid characters (blank spaces)</p>";
die;}
?>
I think I need to replace == (equals) with contains.. but I don't know the syntax for that.
Thanks for any advice.
|