There are 2 things that I need help with using PHP:
When someone submits a feedback form on my site, I want to email to go to my email address, of course!
I have gotten that part done I think, but I have 2 problems on the scripting part of the php script:
1.) Here is the part of the script I have a problem with:
mail( "porsche105@mac.com",
$message, $topic, $email ); --It is fine, but instead of just saying the message on the email, I want it so that it says what it is before it. For example:
Message: Hello Jelvis!
Topic: Cats
Email: email@email.com
SUBMIT
After submitting, the form comes to my email, and it says:
Hello Jelvis!
Cats
email@email.com
Instead of saying that when it is sent, I want it so that it says this:
(bold if possible) Message: Hello Jelvis!
(bold if possible) Topic: Cats
(bold if possible) Contact: email@email.com
Is there a way to do this using the script I provided above?
__________________
2.) After the feedback form is submitted, the information goes to my email fine, but after I get the first message, about 15 minutes later I get 22 more of the same message, and then another 2 and it stops.
Is there a way so that only 1 is sent?
I pressed submit once when testing the php form, and then all of a sudden I get 25 emails of the same message, and if I get 5 people sending me a message using that form, that means I get 100 messages of 4 different kinds.
I'm wondering if someone could give me an explanation and a solution to this.
I really hope you guys can help me out!
Thanks,
Jelvis
When someone submits a feedback form on my site, I want to email to go to my email address, of course!
I have gotten that part done I think, but I have 2 problems on the scripting part of the php script:
1.) Here is the part of the script I have a problem with:
mail( "porsche105@mac.com",
$message, $topic, $email ); --It is fine, but instead of just saying the message on the email, I want it so that it says what it is before it. For example:
Message: Hello Jelvis!
Topic: Cats
Email: email@email.com
SUBMIT
After submitting, the form comes to my email, and it says:
Hello Jelvis!
Cats
email@email.com
Instead of saying that when it is sent, I want it so that it says this:
(bold if possible) Message: Hello Jelvis!
(bold if possible) Topic: Cats
(bold if possible) Contact: email@email.com
Is there a way to do this using the script I provided above?
__________________
2.) After the feedback form is submitted, the information goes to my email fine, but after I get the first message, about 15 minutes later I get 22 more of the same message, and then another 2 and it stops.
Is there a way so that only 1 is sent?
I pressed submit once when testing the php form, and then all of a sudden I get 25 emails of the same message, and if I get 5 people sending me a message using that form, that means I get 100 messages of 4 different kinds.
I'm wondering if someone could give me an explanation and a solution to this.
I really hope you guys can help me out!
Thanks,
Jelvis