Send a message...
81 "; 107 echo "Subj: ".$subj.""; 108 echo "Msg: ".$message."
"; 109 if (!(mail($to,$subj,$message,$source))) 110 { 111 echo "There was a problem sending your message;
112 Please notify the Webmaster."; 113 } else { 114 // provide 'close' button 115 echo "Your message was sent OK."; 116 echo "
\n
\n"; 117 } 118 } else { 119 // did not submit, let's provide a form- 120 // do the query: get the email of the record id she clicked upon- 121 // variable $thisid is furnished by the calling page 122 $query = "SELECT Entryid,Fname,Lname,Email FROM Messages WHERE Entryid='$thisid'"; 123 if (!($result = @ mysql_query ($query, $db))) 124 showError("4"); 125 $rowsFound = @ mysql_num_rows($result); 126 if ($rowsFound != 1) 127 { 128 echo "
Oops! ".$rowsFound." log entries found with this ID.\n"; 129 exit; 130 } else { 131 $myrow = @ mysql_fetch_array($result); 132 // show form 133 ?> 134 166 170