Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

PHP Mailer Form only sends first value.

Good day, first of, thank you very much for the very informative tutorials. I incorporated the PHP Mailer form into a this website -> www.kroffcycles.co.za/temp . The problem is that only the name value gets send, but the Message and Email fields come back empty.

Name: Jaco Burger

Email:

Message:

What am I doing wrong?

Thanks!

can't really help you if you don't post the code

2 Answers

Hi Randy, thanks for the reply. I managed to sort it out earlier today. I redid the tutorial and it works 100% now, I guess I missed a line of code first time through.

Thanks :)

Randy Hoyt
STAFF
Randy Hoyt
Treehouse Guest Teacher

Hey Jaco Burger , Any chance you can share your code here? (I suspect the name attribute on the HTML elements in the form does not match the array elements you are calling in the code that sends the email.)