help with email form - Page 2

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Re: help with email form

Quoted text here. Click to load it

Not getting any error messages. Where are the configurations that you
speak of?

Re: help with email form

alice wrote:
Quoted text here. Click to load it

Just a note, but you should get a return value from mail() to say  
whether it worked or not.

    if ( !mail($to, $subject, $message, $head) ) {
        exit("Achk... something not right.");    

and also something to note, when I write out a header for a redirect
I always encapsulate it in an exit, i've used ti before in code and
found that header() doesn't actually quite your code, so you have
danger of some code after the header being executed... eg.

    header( 'Location: offwego.php' );
    // next line would execute even though the header redirects
    mysql_query("DELETE FROM users WHERE user_id=");

PS. Did you get this working?  be careful from with From: field, some
server drop mail if the From is invalid.

Site Timeline