我在this website中添加了一個簡單窗體,對於這個特定的域它不起作用。我嘗試過一個不同的領域,它的效果很好。 任何人都可以幫我弄清楚問題是什麼?任何人都有第二種類型的表單符合這個規範?窗體不能在特定域中工作
<?php
$name = $_POST ['name'];
$mobile = $_POST ['mobile'];
$email = $_POST ['email'];
$subject = $_POST ['subject'];
// $message = $_POST ['message'];
$message = $_POST['message'] . "\n Contacto: " . $_POST['mobile'];
$to = "[email protected]";
// $subject = "" . $mobile;
mail ($to, $subject, $message, "From: " . $email);
echo "<div style ='font:14px Arial, Helvetica, sans-serif;font-weight: bold;line-height: 15px;color:white;background-color: green;padding: 5px;text-align: -webkit-center;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;'>Your message has been sent!</div>";
?>
<form action="backend/form_processEN.php" method="post" name="contact_form" id="contact_form" target="myIframe" autocomplete="on">
\t \t \t \t \t \t \t \t \t \t \t <fieldset>
\t \t \t \t \t \t \t \t \t \t \t \t <div>
\t \t \t \t \t \t \t \t \t \t \t \t \t <label for="name" accesskey="U">Name</label>
\t \t \t \t \t \t \t \t \t \t \t \t \t <input name="name" type="text" id="name" placeholder="Enter your name" required="required" />
\t \t \t \t \t \t \t \t \t \t \t \t </div>
\t \t \t \t \t \t \t \t \t \t \t \t <div>
\t \t \t \t \t \t \t \t \t \t \t \t \t <label for="mobile" accesskey="P">Phone</label>
\t \t \t \t \t \t \t \t \t \t \t \t \t <input name="mobile" type="tel" id="phone" size="30" placeholder="Enter your phone number" required="required" />
\t \t \t \t \t \t \t \t \t \t \t \t </div>
\t \t \t \t \t \t \t \t \t \t \t \t <div>
\t \t \t \t \t \t \t \t \t \t \t \t \t <label for="email" accesskey="E">Email</label>
\t \t \t \t \t \t \t \t \t \t \t \t \t <input name="email" type="email" id="email" placeholder="Enter your Email Address" pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" required="required" />
\t \t \t \t \t \t \t \t \t \t \t \t </div>
\t \t \t \t \t \t \t \t \t \t \t \t <div>
\t \t \t \t \t \t \t \t \t \t \t \t \t <label for="subject" accesskey="W">Subject</label>
\t \t \t \t \t \t \t \t \t \t \t \t \t <input name="subject" type="text" id="subject" placeholder="What´s the subject?" required="required" />
\t \t \t \t \t \t \t \t \t \t \t \t </div>
\t \t \t \t \t \t \t \t \t \t \t \t <div>
\t \t \t \t \t \t \t \t \t \t \t \t \t <label for="comments" accesskey="C">Message</label>
\t \t \t \t \t \t \t \t \t \t \t \t \t <textarea name="message" cols="40" rows="3" id="comments" placeholder="Leave your message..." spellcheck="true" required="required"></textarea>
\t \t \t \t \t \t \t \t \t \t \t \t </div>
\t \t \t \t \t \t \t \t \t \t \t </fieldset>
\t \t \t \t \t \t \t \t \t \t \t <input type="submit" name="submit" class="submit" id="submit" value="Submit" >
\t \t \t \t \t \t \t \t \t \t \t <iframe name="myIframe" frameborder="0" border="0" cellspacing="0" style="border-style: none; margin-left: 65px; width: 240px; height: 40px;"></iframe>
\t \t \t \t \t \t \t \t \t \t \t
\t \t \t \t \t \t \t \t \t \t </form>
感謝
使用不同的域名的作品? – Rabea
在這裏:http://www.refeel.pt/teste/001/002/index2.html#!/page_Contact – rvd83
它只是與我合作,所以你之前發佈的那個沒有? – Rabea