用户点击提交后,如何获得弹出框或简单的说“谢谢”?可能最简单的方法:用户点击提交后提供反馈
<div id="suggestion">
<div class="control-group">
<div class="controls">
<input type="submit" value="Send" class="btn btn-info" />
这是PHP:
<?php
// Email of sender
$videogamename = $_POST['namevideogame'];
// From (Sender Name)
$artistname = $_POST['nameofartist'];
$header = "from: Game AMV";
// Message
$message = "Name of Video Game: ".$videogamename."\r\n\nName of Artist/Song: ".$artistname."\r\n\nLink: ".$_POST['link'];
// Enter your email address
$to ='[email protected]';
$send_contact = mail($to, 'New Song Suggestion from gameamv.com', $message, $header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
header("location: http://gameamv.com/");
} else {
echo "Error. The form was not submitted. Please try again.";
}
?>
只要提醒('谢谢.....');这是你想要的? – PSL 2013-04-22 02:36:51
“用户点击提交后,我怎样才能得到一个弹出框或简单的说,”谢谢“?最简单的方式” - 或不,这是一个更好的UI设计... – 2013-04-22 02:38:08
记得要在执行'header('Location:$ url');' – Raptor 2013-04-22 02:41:40