邮箱地址从数据库取,在一个招聘详细页面点有显示,当在该详细页面点击应聘时,怎么将邮箱地址动态传过来并在sendMail.php页面里面获取传过来的邮箱地址
谢谢
招聘详细页面里面:
连接+隐藏iframe
<iframe name="back_interface" id="back_interface" style="display:block;width:100%;height:300px;"></iframe><a href="../php_test/sendmail.php?EnterpriseMailbox=327496144@qq.com" target="back_interface" >应聘</a>
<!doctype html><html> <head> <meta charset="UTF-8"/> <title>Document</title> <script src="http://static.blog.csdn.net/scripts/jquery.js" type="text/javascript"></script> <script> $(function(){ $("#send").click(function(){ var mailbox=$("#EnterpriseMailbox").html() $.get("../php_test/sendmail.php", { EnterpriseMailbox: mailbox } ,function(data){ alert("简历已发"); }); }); });</script> </head> <body>企业邮局:<div id="EnterpriseMailbox">327496144@qq.com</div><input id="send" type="button" value="应聘" /> </body></html>
招聘页面
应聘
招聘详细页面
$address = isset($_GET['address'])? $_GET['address'] : '';
?>