now you can insert data into mysql by submitting the form through html.
the php code is as follows
<?php
session_start();
$username=$_REQUEST["username"];
$phone=$_REQUEST["phone"];
$datetime=$_REQUEST["datetime"];
$con=mysql_connect("localhost","root","root");
if (!$con) {
die("".$mysql_error());
}
mysql_select_db("user_info",$con);
$dbusername=null;
$dbphone=null;
$result=mysql_query("select * from user_info where phone ="{$phone}" and isdelete =0;");
while ($row=mysql_fetch_array($result)) {
$dbusername=$row["username"];
$dbphone=$row["phone"];
}
if(!is_null($dbphone)){
?>
<script type="text/javascript">
alert("");
window.location.href="index.html";
</script>
<?php
}
mysql_query("insert into user_info (username,phone,datetime) values("{$username}","{$phone}",now())") or die("".mysql_error()) ;
mysql_close($con);
?>
<script type="text/javascript">
alert("");
window.location.href="index.html";
</script>
on this basis, how to send the contents inserted into the database to the specified mailbox at the same time? Is there a case reference?