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! Quote 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 */} Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.