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

Emmanuel San Miguel
Emmanuel San Miguel
7,555 Points

php contact form

I am going through the videos on php forms, and I am trying them on my end, and instead of showing any variables after I click send on the form it says array(0) { } any thoughts?

EDIT: I found what my problem was.. I forgot to put name="name", "Email" etc.. inside the <input> tag in case someone else has encountered this issue, this is how i solved it.

1 Answer

justinw
justinw
14,517 Points

Emmanuel San Miguel just to piggyback off of your comment if you use MAMP or MAMP Pro on a local machine and you're testing a contact form it will not work. You have to have this on a live server to get the messages to send. Just an fyi - something I ran into during my buildout phase a few months ago.