28
29 <form method='post' action="<?= $_SERVER['PHP_SELF'] ?>">
30
31 <?php
32 $ipi = getenv("REMOTE_ADDR");
33 $httprefi = getenv ("HTTP_REFERER");
34 $httpagenti = getenv ("HTTP_USER_AGENT");
35 ?>
36
37 <input type="hidden" name="ip" value="<?php echo $ipi ?>" />
38 <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
39 <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
40 <input type="hidden" name="subject" value="Mailing List addition - Graduation DVD" />
41 <font color='#000000'>Would you like to be added to the mailing list for updates on the Grad DVD? Just enter your email here >></font>
42 <input name="email" class="textbox" type="text" />
43 <input name="submit" class="button" value="Submit" type="submit" />
44
45 </form>
46
47
150 <?php
151 $aErrors = array();
152 if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+@[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $_REQUEST['email']))
153 {
154 $aErrors[] = "";
155 }
156
157 if (count($aErrors)) {
158 $sURL = "grad.php?m=" . urlencode(implode("
", $aErrors));
159 foreach ($_REQUEST as $rName => $rValue) $sURL .= "&" . 11 urlencode($rName) . "=" . urlencode($rValue);
160 header("Location: {$sURL}");
161 exit;
162 }
163
164 ?>
165
166
167 <?
168
169 $todayis = date("l, F j, Y, g:i a") ;
170
171
172
173 $subject = $attn;
174
175 $notes = stripcslashes($message);
176
177 $message = " $todayis [PST] \n
178
179 From: $email \n
180
181 Message: $email has requested to be added to the Graduation DVD mailing list. \n
181
182
183
184 Additional Info : IP = $ip \n
185 Browser Info: $httpagent \n
186 Referral : $httpref \n
187 ";
188
189 $from = "From: $email\r\n";
190
191
192 mail("gradmail.labsply.com", $subject, $message, $from);
193
194 ?>