Home  >  Article  >  Backend Development  >  php 在递送简历时向邮箱自动发送一份当前简历

php 在递送简历时向邮箱自动发送一份当前简历

WBOY
WBOYOriginal
2016-06-13 12:12:01954browse

php 在投递简历时向邮箱自动发送一份当前简历
邮箱地址从数据库取,在一个招聘详细页面点有显示,当在该详细页面点击应聘时,怎么将邮箱地址动态传过来并在sendMail.php页面里面获取传过来的邮箱地址



谢谢
------解决思路----------------------
招聘详细页面里面:
连接+隐藏iframe

<br /><iframe name="back_interface" id="back_interface" <br />               style="max-width:90%"></iframe><br /><a href="..[email&#160;protected]" <br />             target="back_interface" >应聘</a><br />

或者也可以用ajax传递,以jquery为例
<br /><!doctype html><br /><html><br />  <head><br />    <meta charset="UTF-8"/><br />    <title>Document</title><br />    <script src="http://static.blog.csdn.net/scripts/jquery.js" type="text/javascript"></script><br />    <script><br />  $(function(){<br />    $("#send").click(function(){<br />      var mailbox=$("#EnterpriseMailbox").html()<br />      $.get("../php_test/sendmail.php", { EnterpriseMailbox:  mailbox } ,function(data){<br />        alert("简历已发");<br />      });<br />    });<br />  });<br /></script><br />  </head><br />  <body><br />企业邮局:<div id="EnterpriseMailbox">[email&#160;protected]</div><br /><input id="send" type="button" value="应聘"  /><br />  </body><br /></html><br />





sendmail.php
中对应的改为
$address=$_GET['EnterpriseMailbox'];


------解决思路----------------------
招聘页面
应聘

招聘详细页面
$address = isset($_GET['address'])? $_GET['address'] : '';
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn