And just so you know, the value of the query string (everything after the "?" in a URI) does not need to be quoted. What you're after is going to be done something like this:
Yeah, I new I would need more, but I thought I would start here. Could it be done here without getting the users IP? I didn't think you could automatically launch something in just HTML, but I thought I would try. I will move this over to the PHP area and ask more questions. I don't completely understand what I need to do with the code you gave me. I am completely PHP illiterate.
No. There is no way to send e-mail in the background, client-side. You can, in theory, use the "mailto:" protocol... but that is very messy and doesn't work in every instance (e.g., if the user's client isn't set up properly or they don't have a client to begin with).
Now, as for PHP. Make a file called info.php. Have this inside of it:
<?php phpinfo(); ?>
Upload this to your server, and then visit yourdomain.com/info.php. If you see page with a ton of PHP information, you have PHP installed and functioning properly on your server.
If you get this far, all you need to do is then make a file called test.php, and then include the code I previously gave you within it. To "use" the script, just link to the file like this:
You can also type in the ID manually in the location bar, but I'm not sure how you want to approach this.
Hey, that works great. Now, I have a couple more questions. How do I either place this in an html file or redirect to an html file after it has performed it's mail send? I tried placing this same code in an html file and calling:
But, it doesn't work. I tried it in the body, and then I tried it before the <html> tag at the beginning of the file. Neither one worked.
PHP will only work if your file has a php extension. Your page can look like a regular html page (with the php stuck in the middle of it) - it just has to have a php extension. Also, I think (though I'm not 100% sure) if you use a redirect like that (header) you might need to put that before the html head.