201 posts
  • 6 Years of Membership
  • Collector Level 5
  • United States
ace2296
says

I’m trying to add another field (the phone field) to the already made form. Here is my form code ->

[solved – code removed]

What would I add to the contact.php code to show the form field in the message section of the email?

1565 posts
  • Affiliate Level 1
  • Author Level 5
  • Collector Level 2
  • Featured Author
+2 more
OriginalEXE
says
Line where there is:
$message   = strip_tags(stripslashes($_POST['message']));
change to:
$message   = strip_tags(stripslashes($_POST['message'] . ' Phone: ' . $_POST['phone']));
201 posts
  • 6 Years of Membership
  • Collector Level 5
  • United States
ace2296
says

Line where there is:
$message   = strip_tags(stripslashes($_POST['message']));
change to:
$message   = strip_tags(stripslashes($_POST['message'] . ' Phone: ' . $_POST['phone']));

Thanks man this did it :)

by
by
by
by
by
by