国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

???

php ???

PHP ??? ???

PHP? ???? ?????? ?? ???? ?? ? ????.

PHP mail() ??

PHP mail() ??? ?????? ???? ??? ? ?????.

QQ截圖20161009091837.png

??: PHP?? ?? ??? ????? ?? ???? ???? ???? ???. ???? ????? php.ini ??? ?? ??? ?? ?????. PHP ?? ?? ????? ??? ??? ?????.

PHP ?? ???

PHP? ?? ???? ??? ?? ?? ??? ?? ???? ??? ????.

?? ???? ?? ??($to, $subject, $message, $from, $headers)? ??? ?? mail() ???? ??? ??? ???? ???? ????. mail:

<?php
 $to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
 ?>

PHP ?? ??

PHP? ???? ???? ??? ??? ?? ? ????. ?? ?? ??? ??? ??? ?? ???? ????.

<html>
<body>
 <?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
  {
  //send email
  $email = $_REQUEST['email'] ;
  $subject = $_REQUEST['subject'] ;
  $message = $_REQUEST['message'] ;
  mail( "someone@example.com", "Subject: $subject",
  $message, "From: $email" );
  echo "Thank you for using our mail form";
  }
else
//if "email" is not filled out, display the form
  {
  echo "<form method='post' action='mailform.php'>
  Email: <input name='email' type='text' /><br />
  Subject: <input name='subject' type='text' /><br />
  Message:<br />
  <textarea name='message' rows='15' cols='40'>
  </textarea><br />
  <input type='submit' />
  </form>";
  }
?>
 </body>
</html>

? ??:

?? ??? ???? ??? ??? ?????

???? ?? ??(?: ???? ?? ??? ?) HTML ??? ??

??? ??(??? ??? ?) ???? ??? ???

?? ??? ???? ???? ?????? ???? ????? ?????? ???? ?????.



???? ??
||
<html> <body> <?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "someone@example.com", "Subject: $subject", $message, "From: $email" ); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?> </body> </html>