PHP Classes

string search

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Upcoming Visual HTML ...  >  All threads  >  string search  >  (Un) Subscribe thread alerts  
Subject:string search
Summary:I need to email form info to an address depending on one word
Messages:2
Author:John Bunt
Date:2007-01-30 15:52:00
Update:2007-01-30 16:47:05
 

  1. string search   Reply   Report abuse  
Picture of John Bunt John Bunt - 2007-01-30 15:52:00
I need to email the form info depending on one word in a multiple word string from a single field in the form.
Example:
If the word "dog" is in the $_POST['Additional_Comments'] field which might be "I have a dog" then email to aaa@aol.com

If the word "dog" is not in the $_POST['Additional_Comments'] then email to bbb@earthlink.net

Please help!
Thank you.

  2. Re: string search   Reply   Report abuse  
Picture of John Bunt John Bunt - 2007-01-30 16:47:05 - In reply to message 1 from John Bunt
By the way...I have a working script now.
I just need to email my form to a different address if a certain word is in that particular field. The only thing I don't know is how to search the field for a particular word when there are multiple words in the field.

Thanks