我可以使用哪种魔法在电子邮件中发送值名称,但我还需要在example.php上显示它,当时我无法获得&一起发帖?
HTML:
<form target="_blank" action="email_ok.php" method="post">
Name:<br>
<input type="text" name="name" value="" size="50" required>*povinné - Vaše meno (objednávateľ)<br>
<input type="submit" value="SEND">
</form>
使用example.php
<?php
$to = 'xyak@send.com';
$subject = 'FORM';
$message = $_POST['name'];
mail($to, $subject, $message);
?>
Name is: <?php echo $_GET["name"]; ?>
发送后我收到了正确的电子邮件,但名称是:--empty -
非常感谢