Hi mohaydee,
Unlike CSS which which is interpreted by the browser as formatting and styles for the HTML, PHP is interpreted by the server into HTML that is sent to the browser.
The "action" of your form:
<form method="post"
action="sendeail.php">
defines the page that the form data will be sent to. A better comparison to a HTML form is a HTML Link.
eg:
<a href="sendeail.php">Send Mail</a>
This is the same as:
<form action="sendeail.php" method="get">
<input type="submit" value="Send Mail" />
</form>
A form however, allows use interaction where a link does not.
As for the PHP code you need in "sendeail.php", sn4rf3r gave a really good example.
The only other security issue I'd worry about is cleaning your mail headers before placing them in the php mail() function.
see:
http://www.securephpwiki.com/index.php/Email_Injection
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
Offline 1,250 posts
since Sep 2005