Sorry for not replying sooner (at work at the moment ).
I have a basic contact form that I'm currently working on. I'll try to send it to you later this evening to check out and maybe learn something from, but in the meantime, I thought I would try to encourage you to use a tutorial I found awhile ago so that you can begin teaching yourself this stuff. Trust me, it's way better than posting on forums all the time.
That said, I stumbled across this page earlier this morning. It looked like an okay tutorial but even better, it provides a sub tutorial on creating your own localhost e-mail server to test with (which is invaluable).
Until I get done with my contact form, you could go ahead and try to work on that tutorial above (unless you find something better between now and whenever, that is).
If you do work on the tutorial, keep the following in mind:
- You need to go download and install the "ArGoSoft Mail Server" (it's an okay program that's easy to install and remove later on should you choose to. No hardcore server setup experience required and no strings attached.)
- After that, go download and install Mozilla Thunderbird. Don't worry, like above, this one's easy to install and remove, too.
- After these are both installed, create a new domain and user in the ArGoSoft app. Name the domain "localhost" and give your user a name of whatever you want (password is optional). Once this has been done, turn the e-mail server on by pressing the tiny "green arrow" at the upper-left portion of the window. (Tools / Account Settings). Make sure you use whatever name you used with the server and your e-mail address will be <your name>@localhost. I believe that's it with the e-mail setup stuff.
- Now, assuming you have WAMP (or something equivalent) installed on your computer to test out your actual PHP applications, throw the code at the bottom of this page into a PHP file to test out your e-mail server. (Keep in mind that once you load up the page, you won't see anything. Instead of looking for something to happen, you'll have to instead go back into Mozilla Thunderbird and have it "Get Mail" instead.) If everything's been setup correctly, you should receive a simple message in your inbox. If not, go back and repeat a few steps... Or, ask for more help.
- Assuming everything worked okay, go create a simple PHP index page that has some simple markup for your form. The actual form markup element allows for 2 notable attributes: "action" and "method". With action, you'll provide the name of the file you want to submit your form values to, in our case, just use something like "processor.php". For the method attribute value, use "post" (the twin brother of this is "get", which allows you to submit values through the URL address bar, otherwise known as "query strings"--we don't really want this.)
- Don't worry about styling at this point. Worry more about getting your values submitted to that processor page. To ensure this happens, you'll need some inputs to submit values from (i.e. - first name input, last name input, website input, and a message text area) and once the user (you) fills these in, you'll need a submit input button to make it all be submitted to that processor.php page. So do some reading on simple forms using PHP for data handling and don't forget about that mail code I mentioned below.
(Again, just load this to-be file into your browser. That's all.)
// The message
$message = "Blah, blah, and more blah... Better than Hello World!";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
mail('Wolf_22@localhost', 'My Subject', $message);
I'll try to be back online later.