| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) | ||
|
CSS Noob
Join Date: Jan 2008
Posts: 97
|
Hidden Email in a Contact Form
I have a contact form and I want to have multiple recipients but I keep seeing scripts like this, which don't secure the email address of the recipients. My current script is like this in the contact form file. However, the email isn;t being sent to the selected recipient. How can I fix that? Quote:
And like this in the processing script. Quote:
|
||
|
|
|
|
|
#2 (permalink) |
|
Moderator
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
|
How is that not securing the email address again? I don't see any emails in that HTML. Find good advice in the beginners web design thread.
patrick o'neill web developer | blog | spam humor |
|
|
|
#4 (permalink) | |
|
CSS Noob
Join Date: Jan 2008
Posts: 97
|
Sorry my mad. I keep seeing scripts like this. Quote:
However, I know that script can get those email address spam bombed. So I tried that script shown above, but it isn't sending the emails. So what do I do? |
|
|
|
|
#5 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 1,306
|
You can use this: Code:
|
|
|
|
#6 (permalink) | |
|
CSS Noob
Join Date: Jan 2008
Posts: 97
|
Here is the full script. I tried that thing you told me to insert, but it never worked. Quote:
|
|
|
|
|
#7 (permalink) |
|
Moderator
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
|
You have to at least do more than copy/paste it in and then ditch it if it doesn't work. Try learning how it works and fixing it. It's very easy. The values "test1" and so on are not defined in your form, so obviously the switch function isn't going to make a match. Find good advice in the beginners web design thread.
patrick o'neill web developer | blog | spam humor |
|
|
|
#8 (permalink) | |
|
CSS Noob
Join Date: Jan 2008
Posts: 97
|
Quote:
I did have the values in the main form assigned like this. It still didn;t work. |
|
|
|
|
#9 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 1,306
|
At least some of your problems lie here: Code:
You are missing a bracket, and you are declaring $email_to outside the function as well as inside the function. I don't know if you can set it outside the function like that, but if you can, then you will need to remove it from inside the function. But I think you should just define it inside the function. |
|
![]() |