Menu
How do I do more than one str in one echo for a form field.
I have a drow list of “departments” the value is the main contact’s email in that department, when they hit submit, I don’t want them to see the email address, I want the Department displayed back to them. This script below works fine for me, but its only 1 option, How do I do a more than one email/department str replace?
[code=php]<? $Field = str_replace(“email@address”, “Department”, $Field); echo “$Field”; ?>
Example:
email1@address [replaced with] Department1
email2@address [replaced with] Department2
email3@address [replaced with] Department3
Thank you.