Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP form creator?
#1
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?
Reply
#2
If you PM me the code I'll have a go at this.
Reply
#3
Have it post to a page then use mail() with $_POST['variablename'] to send an email.
Need website or forum help?
[Image: logo.png]
Reply
#4
No idea what you're talking about? Give me an example with the field "username"
Reply
#5
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);
}
?>
Need website or forum help?
[Image: logo.png]
Reply
#6
I have it fully working, thanks.
Reply
#7
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!
Reply
#8
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
We're all entitled to our own opinions. So, in my opinion, your opinion sucks.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 534 07-27-2020, 11:26 PM
Last Post: tk-hassan
  PHP email input form - having trouble getting the form to work... abayindi 4 2,052 03-19-2012, 10:02 AM
Last Post: RainbowDashFTW
  [NEED HELP] PHP Form post, get, echo Đενɨаηсε™ 5 1,444 02-06-2012, 01:16 PM
Last Post: ★Cooldude★
  How to make a form. HB Virus 10 2,496 12-30-2011, 08:03 PM
Last Post: BreShiE
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 2,788 10-10-2011, 01:00 PM
Last Post: Greyersting

Forum Jump:


Users browsing this thread: 1 Guest(s)