Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.