Vivid Lust Posted July 19, 2008 Share Posted July 19, 2008 In php, how can i check a text area to see if something exists. E.g. (in some made up coding!) CHECK post('bott'); IF(lol !exist );{ print "please check your form"; } Sorry for my no0bish example xD Hope someone can help Thanks in advanced! Link to comment https://forums.phpfreaks.com/topic/115613-check-text-area-to-see-if-something-exists/ Share on other sites More sharing options...
ignace Posted July 19, 2008 Share Posted July 19, 2008 $textarea = $_POST['textarea']; $what = "foobar"; $init = substr($textarea, strpos($foobar)); if (empty($init)) {/* not in it */} Link to comment https://forums.phpfreaks.com/topic/115613-check-text-area-to-see-if-something-exists/#findComment-594318 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.