Jump to content

if form field contains


BigTime

Recommended Posts

Hi everyone...

 

What is the proper syntax to identify if a form field contains a certain character string using a wildcard?  Is this possible?

 

Im essentially trying to throw an error if an entry field contains http://

 

if ($_POST[map] like 'http:%'){

 

except I get Parse error: syntax error, unexpected T_STRING on that line when I try it...

Link to comment
https://forums.phpfreaks.com/topic/123084-if-form-field-contains/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.