194 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 100+ items on Envato Market
  • Located in 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?

1473 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
OriginalEXE says
Line where there is:
$message   = strip_tags(stripslashes($_POST['message']));
change to:
$message   = strip_tags(stripslashes($_POST['message'] . ' Phone: ' . $_POST['phone']));
194 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 100+ items on Envato Market
  • Located in 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