Jump to content

Connectiong a form to e-mail


msa225

Recommended Posts

Hi,

I'm trying to connect a form to an e-mail. This is my PHP file:

<?
  $name = $_REQUEST['name'] ;
  $eMail = $_REQUEST['eMail'] ;
  $comments = $_REQUEST['comments'] ;

  mail("[email protected]", "Comments from Layla Beer website",
  "Comments: $comments", $eMail );
  header( "Location: http://www.laylabeer.com/thanks.html" );
?>

However, I'm not satisfied with the way the e-mail is displayed. I want it to look like this:
name: xxxxx
E-mail: xxxxxx
comments: xxxxxxxx

Is it possible?

Thanks!
Link to comment
https://forums.phpfreaks.com/topic/29838-connectiong-a-form-to-e-mail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.