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 Build a Simple PHP Application Adding a Contact Form Working with Post Variables

How do I define a file on a remote server to receive contacts

Hi, This is a real life situation. I built a website for myself at www.teardropdeepspace.com . I want to put a contact form on it. In this lesson we have been working with a local (MAMP) server. How do I create a file that will receive data when my website is hosted remotely by a paid-for hosting service (in my case webhostingpad.com). Do I just insure I can place a folder and file on the remote server, give them names and access them through my admin privilege? Is PHP coding understood by most servers?

2 Answers

It should work the same on your hosted server as it does locally. You would simply upload all your website files to your web root on your hosted server. There may be some configuration that has to be done with how the emails are sent.

Most servers would run php but you would want to check with your hosting company to see if the account you have is linux based and would run php. Windows based hosts would normally run asp but these are less common.

Jason, Thanks for the response. I will give it a try. Best, P.