How not to send contact form mail from "root user"

Hi,

I am a newbie to php. Thanks to Kripa tutorials that I have successfully created a php html contact form for my website. The form is doing well accept to 2 things.

I receive all emails from “Root User”, I wish it came from the sender’s name provided in the name field of the form.

The subject of all emails remains same “Contact Form” as set by me in the form. I wish I could create a subject field which was filled by the visitor and hence I could get emails with unique subject each time.

I’m using gmail to receive these email. Gmail bundles all the new emails from same destination (Root User) and subject (Contact Form) in one which creates confusions.

Can I get help on this? Thank you very much.

Raj