All pastes #126794 Raw Edit

img mail bug

public php v1 · immutable
·published 2006-08-11 20:03 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">    <!-- DW6 -->    <head>    <!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />    <title>GSPX Newsletter Admin Tool</title>    <link rel="stylesheet" href="emx_nav_left.css" type="text/css" />        </head> <?phprequire("news_host.inc");function get_banner_request() {	$banner_form = "<table align=\"left\"><tr>"	. "<FORM method=\"GET\">"	. "<td>Please choose a search criteria: <select name=\"criteria\">"	. "<option value=\"Issue\">Issue</option>"	. "<option value=\"BannerID\">BannerID</option>"	. "<option value=\"Organization\">Organization Name</option></td>"	. "<td>Value: <input type=\"text\" name=\"value\" maxlength=\"30\"></td>"	. "<td><input type=\"checkbox\" name=\"display\" value=\"true\" checked >Displayed (brief) report<br>"	. "<input type=\"checkbox\" name=\"mailReport\" value=\"true\">Emailed (full) report sent to <input type=\"text\""	. "name=\"recipient_email\"><td>"	. "<td><input type=\"submit\" name=\"bannerform\" value=\"Submit\"></td>"	. "<input type=\"hidden\" name=\"state\" value=\"Banner\">"	#. "<input type=\"hidden\" name=\"bannerform\" value=\"true\"></form>"	. "</tr></table>";	print $banner_form;}function stupid_email() {	$recipient = "zburnham@gspx.com";	$subject = "single email";	$body = "you should only get this once";	mail($recipient, $subject, $body);	print "recipient = $recipient, subject = $subject, body = $body<br>";	#phpinfo();}$default_number = 1;if($_GET['state'] == "Banner") {	if ($_GET['bannerform'] == "Submit") {	echo "Sending the request for the email function..";	#generate_banner_report($connection, $_GET['criteria'], $_GET['value'], $_GET['recipient_email'], $_GET['display'], $_GET['mail']);#	include('stupid.php');	stupid_email();	} else {	get_banner_request();	}}?>	        <div id="siteInfo">     <img src="" width="44" height="22" >     2006 Global Technology Conferences </div>    </div>    <!--end pagecell1-->    <br />    </body>    </html>