Support Forums

Full Version: PHP form creator?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've made a form in in PHP and I've got a submit button, I'd like to know how I can get that to submit to my Email with all the details they filled out.

Screenshot of form:

[Image: formd.png]

any help would be appreciated, if I could perhaps PM someone the code and they could help getting it to send to email?
If you PM me the code I'll have a go at this.
Have it post to a page then use mail() with $_POST['variablename'] to send an email.
No idea what you're talking about? Give me an example with the field "username"
Quick and insecure example.

say your current page's form posts to /lol/noobs.php with their username in the variable with name "usr".

on noobs.php you would have:

<?php
if(isset($_POST['usr']))
{
$variable = $_POST['usr'];
mail('you@you.com', 'HAI DER (subject)', $variable);
}
?>
I have it fully working, thanks.
Two easy steps for this:

1) Go to your favorite search engine's site and type: php manual mail()
2) Click on what will most likely be the first link and read the manual about the mail() function

After you have done those two steps, you shouldn't have any problems to do this simple task!
I'm sharing a working contact form over at HF for l33t's and ub3r's. You could request that and take a look at it.

- Skyset