Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Newbie nid help,How to write a php code for sending email !

the mail() function

Moderators: macek, egami, gesf

Newbie nid help,How to write a php code for sending email !

Postby starbuckcute » Thu Apr 14, 2011 10:53 pm

Hi, i'm a newbie for php !
Please any pro help me to solve my question :help: :help:

i create a order form, when user finish entering all those detail/data in the form.
how do i let all the data they fill in send to my @hotmail.com !?!?

Please teach me.
starbuckcute
New php-forum User
New php-forum User
 
Posts: 7
Joined: Thu Apr 14, 2011 10:49 pm

Re: Newbie nid help,How to write a php code for sending emai

Postby starbuckcute » Thu Apr 14, 2011 11:08 pm

Here is the screen shot ! please help me. urgent T__T :help: :help: :help:
Attachments
aaaa.JPG
Here the screen shot
aaaa.JPG (116.96 KiB) Viewed 446 times
starbuckcute
New php-forum User
New php-forum User
 
Posts: 7
Joined: Thu Apr 14, 2011 10:49 pm

Re: Newbie nid help,How to write a php code for sending emai

Postby johnj » Fri Apr 15, 2011 6:13 am

Get data from your form (using GET/POST). Assuming it is POST,

$fullName = $_POST['fullnamevarinsideform'];
$lastName = $_POST['lastnamevarinform'];

Now concatenate all these data and use the mail() in php to email to you.
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Newbie nid help,How to write a php code for sending emai

Postby starbuckcute » Mon Apr 25, 2011 4:29 pm

johnj
thanks for your reply, do you mind to type out the whole code for me ?! cause i still not undstd it :(
I'm newbie who just learn PHP for few weeks.
starbuckcute
New php-forum User
New php-forum User
 
Posts: 7
Joined: Thu Apr 14, 2011 10:49 pm


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron