Ich möchte eine E-Mail nach der Anmeldung senden, aber es funktioniert nicht, ich weiß nicht, was falsch ist könnte mir Plže helfenwollen Alert-Box Stil hinzufügen
Javascript
// WRITE THE VALIDATION SCRIPT IN THE HEAD TAG.
function isNumber(evt) {
var iKeyCode = (evt.which) ? evt.which : evt.keyCode
if (iKeyCode != 46 && iKeyCode > 31 && (iKeyCode < 48 || iKeyCode > 57))
return false;
return true;
}
html + php
<html>
<body>
<form name="reg" action="code_exec.php" method="post">
<table width="274" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td colspan="2">
<div align="center">
<?php
$remarks=$_GET['remarks'];
if ($remarks==null and $remarks=="") {
echo 'Register Here';
}
if ($remarks=='success') {
echo 'Registration Success';
}
?>
</div>
</td>
</tr>
<tr>
<td width="95"><div align="right">Mobile_no:</div></td>
<td width="171"><input type="text" ID="tbNumbers" name="mobile_no" required maxlength="10" onkeypress="javascript:return isNumber(event)" /></td>
</tr>
<tr>
<td><div align="right">Name:</div></td>
<td><input type="text" name="name" required/></td>
</tr>
<tr>
<td><div align="right">E_mail:</div></td>
<td><input type="text" name="e_mail" E_MAIL required pattern="[a-z0-9._%+-][email protected][a-z0-9.-]+\.[a-z]{2,3}$" /></td>
</tr>
<tr>
<td><div align="right">Password:</div></td>
<td><input type="password" name="password" required pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"/></td>
</tr>
<tr>
<td><div align="right"></div></td>
<td><input name="submit" type="submit" value="Submit" /></td>
</tr>
</table>
</form>
<!-- Javascript -->
<script src="assets/js/jquery-1.8.2.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.backstretch.min.js"></script>
<script src="assets/js/scripts.js"></script>
</body>
</html>
ich bin senden möchten ail nach Anmeldung des Kunden-ID, die Auto
<?php
session_start();
$con = mysqli_connect("retail", "RS", "orbisindia", "rs");
$mobile_no = $_POST['mobile_no'];
$name = $_POST['name'];
$e_mail = $_POST['e_mail'];
$password = $_POST['password'];
$Cust_Id = time();
$message = "";
try {
// execute the stored procedure
$sql = mysqli_query($con,"CALL sp_retail_reg('$Cust_Id','$mobile_no','$name','$e_mail','$password')");
if(!empty($Cust_Id)) {
$toEmail = $_POST['e_mail'];
$subject = "Thank you for registration";
$content = "your Custotmer id is" . $Cust_Id ;
$content1 = "your Password is" . $password ;
$mailHeaders = "From: [email protected]";
if(mail($toEmail, $subject, $content,$content1, $mailHeaders)) {
$message = "You have registered and your cutomer id is sent to your email. plze check spam Also.";
}
unset($_POST);
}
} catch (PDOException $pe) {
die("Error occurred:" . $pe->getMessage());
}
$ Meldung = "Ihre cust_id = $ cust_id."; echo "alert ('$ message'); window.location.href = 'home.php';";
plze Übersicht mein Code und helfe mir damit aus, da ich neu in diesem bin, aber ich versuche –
Bitte lesen Sie zuerst: http://StackOverflow.com/Help/How-to-ask Sie können nicht einfach alle dump Ihr Code hier und sagen Sie uns, es zu beheben. Entschuldigung, SO funktioniert SO nicht. – arkascha
ich frage nicht, es zu reparieren nur ich frage, wo ich falsch mache und es tut mir leid, es ist mein fehler –