I m New To php , and gernate a signup form, that send an E-Mail at success of signup to the user, .

But the problem is that in inbox it shows " ANONyomous" the link work fine, but th only problem is the above i mentioned.
Here is my code...

 if($query)
                    {
    // send e-mail to ...
                $to=$u_email;


// Your subject
                $subject="Confirmation Link";

// From        

                $header="from: [email]dummy@myweb.com[/email]";

// Your message
                $message=" This is the confirmation code \r\n";
                $message.="Click on this link to activate your account \r\n";
                $message.="http://www.imyweb.net/testing/myweb/confirmation.php?passkey=$confirm_code";

// send email
                $sentmail = mail($to,$subject,$message,$header);

                        }else if(!$query){
                        header("location:registration.php?msg=errormail");
                                        }

// if your email succesfully sent
                        if($sentmail)   {
                                    header("location:success.php?confirm=key");  
                                        }else if(!sentmail) {
                                                    header("location:registration.php?msg=errorlink");   }




////////////////////////////
}

Plz Help Me.

ahmadjhoney,
Here is a link to a php e-mail form.

instead of $header="from: dummy@myweb.com";
try:
$from = "dummy@myweb.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);