/    Sign up×
Community /Pin to ProfileBookmark

Form Subit button

ok this might sound likea stupid question, but i hope u guy/gals can help.

What i made was a order form with a submit button. What i want it to do is that when the users clicks on the button submiting the form. it sends the information that the users has inputed to my email address.

<FORM action=”order.php” method=”post”>

what i need is the acually php source to make it send to my email..
make this ez for me cause i am a noob..

thanks guys hope u can help

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@SheldonSep 13.2005 — this is a good page posted in a thread 3 or 4 before yours.

[url=http://www.felgall.com/php2.htm]here[/url]

Ask more questions once you have read that.
Copy linkTweet thisAlerts:
@theuedimasterSep 13.2005 — This should be order.php

[code=php]
<?php
$to = $_POST['user_email'];
$subject = 'the subject';
$message = $_POST['message'];

mail($to, $subject, $message);
?>
[/code]
×

Success!

Help @warchild23 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...