HTML Forms

Hi All:
I am learning how to do HTML Forms in Dreamweaver. At this point I have created the form, successful submit page and tested it on the server. To my surprise it worked; However there are some items I would like to change but I don’t know how.

  1. when the email reaches me, it has a strange sender:


How can I change this to get it to say what I want?

  1. On the successful sumit page I would like to redisplay the information entered in the form as confirmation.

How do I do this?
I am using the formmail on the dreamhost site because I am not sure if I can create a cgi-bin in the root of my site and put my own version of formmail in it? (One I can change.)

I appreciate all the help I can get - Thank you for you help

For question 1. I beleive that is the default for the php ini file. If you are using the mail command in php, you can set this yourself in the php script.

$header=‘From: yourname’;

mail ($to, $subject, $message, $header);

For question 2. When you submit a form, the form passes values to the script. The script can check the values to verify they are correct or not empty. You can assign those same values to your form or you can just use echo or print the values. Your choice. I prefer to assign the values back to the form. I just think it looks better. If you have an html book you should beable to find default values for forms. Assign the values as the default.
You could just create a thank you page when someone completes the form, then they know the form was sent. If you do so also create a page that will display if they forgot to fill something out that is required. This way you will know the form is working.

My website

Thank-you for you help. I will try your suggestions.