1 2 3 4 Mailer 5 43 77 78 79
80

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
135 136 137 153 154 155 156 157 158 163 164
138 To:
139 140
141 From: (enter your email address)
142 143
144 From: (enter it again to confirm)
145 146
147 Subject:
148 149
150 Message: (512 chars max)
151 152

159 160    161 162
165
166 170
171 175 176