I suppose I'm doing this right? I want to know if the user entered
"\.jpeg" or "\.jpg". If he didn't, it should error.


It errors anyways? What do I have to do add slashes in my <input>???
:o)

// if((!strpos($yourimage, "\.jpg")) || (!strpos($yourimage,
"\.jpeg")))      \\ <--- tried both!
 if((!strpos($yourimage, ".jpg")) || (!strpos($yourimage, ".jpeg")))
{
  error_found("error found");
  $errorfound++;
 }



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to