Posted: Tue Aug 09, 2005 11:34 am
i already had that.
when i do
echo $email;
on the mailer it doesnt show anything
when i do
echo $email;
on the mailer it doesnt show anything
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
echo ("<form method=\"post\" action=\"".$_SERVER['php_self']."?yesp2=".$_GET['yes']."");Code: Select all
echo ("<input type=\"hidden\" name=\"email\" value=\"".$data['email']."\">");Code: Select all
<?php
if($_GET['yes']) {
$con = mysql_connect($server, $user, $password);
mysql_select_db($database, $con);
$result = mysql_query("SELECT * FROM `join` where `id` = '".$_GET['yes']."'");
while($data = mysql_fetch_assoc($result)) {
echo ("<br>");
echo ("<form method=\"post\" action=\"view.php?yesp2=".$_GET['yes']."\">");
echo ("<textarea cols=90 rows=15 name=mail> </textarea><br>");
echo ("<input type=\"hidden\" name=\"email\" value=\"".$data['email']."\">");
echo ("<input type=submit name=submit value=Add>");
echo ("</form>");
}
}
if($_GET['yesp2']) {
$con = mysql_connect($server, $user, $password);
mysql_select_db($database, $con);
$email = $_POST['email'];
$mail = $_POST['mail'];
$AdminMessage = $mail;
mail($email, "Team Exile", $AdminMessage, "From: join@teamexileonline.com");
mysql_query("DELETE FROM `join` WHERE `id` = '".$_GET['yesp2']."'");
echo ("<br>Deleted from Requests & Sent mail to user for acceptance.<br>Email sent to:");
echo $email;
echo "<BR>Containg the message:";
echo $AdminMessage;
echo "<BR>";
}
?>