• Welcome to The Cave of Dragonflies forums, where the smallest bugs live alongside the strongest dragons.

    Guests are not able to post messages or even read certain areas of the forums. Now, that's boring, don't you think? Registration, on the other hand, is simple, completely free of charge, and does not require you to give out any personal information at all. As soon as you register, you can take part in some of the happy fun things at the forums such as posting messages, voting in polls, sending private messages to people and being told that this is where we drink tea and eat cod.

    Of course I'm not forcing you to do anything if you don't want to, but seriously, what have you got to lose? Five seconds of your life?

Sending form data to email

Sandstone-Shadow

A chickadee in love with the sky
Pronoun
she/her
I have a form on my website (like an error report form) and I want it to submit the information entered to me in an email. I know how to make the form, and I've used free forms before where it automatically sends it to my email, but I'd like to know how to make it myself.

Can someone point me in the right direction for information? I'm not sure what kind of coding it uses - I've seen ones using ASP but I don't know anything about that code. Can I do it using PHP? I would search for information myself but my biggest problem right now is I don't know what to search for. If someone could give me a link to a guide or something, or even what this is called that I'm trying to learn (then I could search myself), that would be excellent. Thanks!
 
You'll want to use PHP's mailto() function, which can send arbitrary e-mails, and insert the data from the form into the text you send. A very quick Googling gives me this, but be advised that this is only part one of a more complete tutorial and you need to go on to read at least the "How to prevent e-mail injection" bit it links to.
 
Back
Top Bottom