Email address:
First name:
Last name:

connect_error) { die('

Failed to connect to MySQL: '. $link->connect_error .'

'); } else { echo '

Connection to MySQL server successfully established.

'; } /* if ($result) { */ /* echo "Added one row successfully."; */ /* } */ /* else { */ /* echo "Error: INSERT query failed."; */ /* exit(); */ /* } */ printf("
Email address is %s and name is %s", $e_addr, $f_name); /* Send email message, but only if Insert succeeded */ $message = "Thank you for submitting $e_addr.\nWelcome to paulwetor.com!" ; $from_addr = "From: 'do-not-reply@paulwetor.com"; $to_addr = "paulwetor@aol.com"; $subject = "Test Message"; mail( $to_addr, $subject, $message ); $today = date("m/d/Y"); printf("
Date is %s", $today); echo "The date is "; echo date('j F Y'); echo " and the date is "; echo date('H:i:s'); } ?>