Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for condition "like"

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
DE
Hi folks,

I'm currently trying to think myself into writing php scripts.
The current "task" ahead of me should be easy for you to solve ;-)

Question is:
I got an input box where someone can enter some text.
The input is being assigned to a variable. Now what I'd like to to is to check if the input contains a certain string and if that's the case perform certain actions ...

e.G. the script is supposed to check for the word "carmel" so that if someone enters "The carmel-mountain" the script recognizes the string "carmel" has been entered and performs certain actions ..

How can I do this ?

Regards
Thomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top