strpos

From: Date: Fri, 16 Nov 2001 07:05:54 +0000
Subject: strpos
Groups: php.general 
Request: Send a blank email to php-general+get-74822@lists.php.net to get a copy of this message
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++; }

« previous php.general (#74822) next »