Quantcast
Channel: Active questions tagged feedback+php - Stack Overflow
Viewing all articles
Browse latest Browse all 34

Sendmail form feedback, Variables declaration?

$
0
0

Im am using this script http://www.quackit.com/html/codes/html_form_to_email.cfm

It works good as default.

but i have added a few extra variables likes :

/*
This next bit loads the form field data into variables.
If you add a form field, you will need to add it here.
*/
$namn = $_REQUEST['namn'] ;
$telefonnummer = $_REQUEST['telefonnummer'] ;
$email_address = $_REQUEST['email_address'] ;
$comments = $_REQUEST['comments'] ;

My problem is I cant manage to get them show up in the email that gets sent.

I have tried include them like this:

mail( "$webmaster_email", "Feedback Form Results",
  $namn, $email, $telefonnummer, $comments, "From: $email_address" );

and this:

mail( "$webmaster_email", "Feedback Form Results",
  $comments, "From: $email_address" );
  $email, ;)
  $telefonnummer, :)

its not working out, Do you have any idea what i do wrong ?


Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>