Send a message...
"; echo "Subj: ".$subj.""; echo "Msg: ".$message."
"; if (!(mail($to,$subj,$message,$source))) { echo "There was a problem sending your message;
Please notify the Webmaster."; } else { // provide 'close' button echo "Your message was sent OK."; echo "
\n
\n"; } } else { // did not submit, let's provide a form- // do the query: get the email of the record id she clicked upon- // variable $thisid is furnished by the calling page $query = "SELECT Entryid,Fname,Lname,Email FROM Messages WHERE Entryid='$thisid'"; if (!($result = @ mysql_query ($query, $db))) showError("4"); $rowsFound = @ mysql_num_rows($result); if ($rowsFound != 1) { echo "
Oops! ".$rowsFound." log entries found with this ID.\n"; exit; } else { $myrow = @ mysql_fetch_array($result); // show form ?>