192 posts
  • Bought between 100 and 499 items
  • Has been a member for 5-6 years
  • 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?

1465 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says
Line where there is:
$message   = strip_tags(stripslashes($_POST['message']));
change to:
$message   = strip_tags(stripslashes($_POST['message'] . ' Phone: ' . $_POST['phone']));
192 posts
  • Bought between 100 and 499 items
  • Has been a member for 5-6 years
  • 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