这个功能怎么实现? 界面的功能描述: 比如点击象163,sohu ,sinaWEB邮件界面,点击右边通迅录,然后双击通迅录中的邮件地址就可以插入收件人文本框中,我的通迅录是从数据库读取出来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ajax 异步处理。onclick后,把点击的数据进行数据库查询。再返回界面 这个是点击添加的效果,中间加个异步查询就行了吧。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><script> var add = function() { document.getElementsByTagName("input")[0].value = document.getElementsByTagName("a")[0].innerHTML; }</script><body><a href="javascript:void(0)" onclick="return add()">[email protected]</a><input type="text"></body></html> ajax 异步查询!帮忙给个简单的例子啊 经典教程http://www.ibm.com/developerworks/cn/xml/wa-ajaxintro2/ input")[0].是怎么算来的,如果是放到另一个input 里怎么办? 请问高手,如果我在input中加入多个email地址并用分号分开怎么办?如:[email protected];[email protected]<script> var add = function() { document.getElementsByTagName("input")[0].value = document.getElementsByTagName("a")[0].innerHTML; }</script><body><a href="javascript:void(3)" onclick="return add()">[email protected]</a><a href="javascript:void(4)" onclick="return add()">[email protected]</a><input type="text"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><body><input value="[email protected];[email protected] "/><script> var parm = document.getElementsByTagName("input")[0].value; var _split = parm.split(";"); for(var i =0;i<_split.length;i++) { alert(_split[i]); }</script></body></html> dada20042030 非常感谢。不是这样的啊我的意思是在第一个例子基础上,有N个<a href="javascript:void(0)" onclick="return add()">[email protected]</a>插入<input type="text">,并是分开的"aaa"<[email protected]>;"ccc"<[email protected]> <script> var add = function(id) { if(document.getElementById("inputName").value==""){ document.getElementById("inputName").value=id.innerHTML; }else{ document.getElementById("inputName").value+=","+id.innerHTML; } }</script><body><a href="javascript:void(0)" onClick="return add(this);">[email protected]</a><a href="javascript:void(0)" onClick="return add(this);">[email protected]</a><input type="text" name="inputName" id="inputName"> 谁做过用phpmailer群发邮件吗?就是在收件人中增加多个邮件地址,当然一个也能发送<form name="phpmailer" action="send.php" method="post"><input type="hidden" name="submitted" value="1"/>收件人: <input type="text" size="50" name="user[]" /><br>标题: <input type="text" size="50" name="title" /><br>内容: <input type="text" size="50" name="content" /><br/><input type="submit" value="发送"/></form>收件人: <input type="text" size="50" name="user[]" />中的邮件地址格式为为:[email protected],[email protected],[email protected]点击发送就把邮件发送给三个邮箱了 我在网上找了一段代码但是不行:<?phprequire("class.phpmailer.php");$mail = new PHPMailer();$arrUser = $_POST['user'];..............$mailsto = explode(",",$arrUser);for ($i=0;$i<count($mailsto);$i++){ echo "$mailsto"; echo"<br>"; $mail->AddAddress($mailsto[$i]);} <html><body><h3>phpmailer Test</h3><form name="phpmailer" action="send.php" method="post"><input type="hidden" name="submitted" value="1"/>email: <input type="text" size="50" name="address" /><br>titie: <input type="text" size="50" name="title" /><br>content: <input type="text" size="50" name="content" /><br/><input type="submit" value="发送"/></form><script> var add = function(id) { if(document.getElementById("address").value==""){ document.getElementById("address").value=id.innerHTML; }else{ document.getElementById("address").value+=";"+id.innerHTML; } }</script><table border=1><tr><td><input type="checkbox" size="50" name="address" /></td><td>lixuenong</td><td><a href="javascript:void(1)" onClick="return add(this);">[email protected]</a></td></tr><tr><td><input type="checkbox" size="50" name="address" /></td><td>lixn</td><td><a href="javascript:void(1)" onClick="return add(this);">[email protected]</a></td></tr></table><input type="submit" value="插入地址"/>------------------有没有办法点击两个checkbox后把这两个地址插入插入form中</body></html> 搜索"邮件",里面有个我帮着解决用phpmailer发送邮件的. 用exec执行cmd命令返回为空 中文变问号了,高分求恢复方法??? 帮忙解析下代码 请看下面的代码 ,怎么才能把其中最大的值取出来呢? php写web上传程序的一些问题? win2000和 win2000server下 php服务器有什么不同? [HELP] 如何用PHP做一个多媒体播放程序?(有源码最好) PHP连接sqlserver2008,怎么连接指定ip地址上的数据库 PHP 运行一个超长脚本,当用户关闭网页后,该脚本还会运行吗? 关于php弹出确认框的问题 能不能将php读取一个文件的过程写入其它如dll文件中? 谁用phpmailer做个群发邮件吗?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script>
var add = function()
{
document.getElementsByTagName("input")[0].value = document.getElementsByTagName("a")[0].innerHTML;
}
</script>
<body>
<a href="javascript:void(0)" onclick="return add()">[email protected]</a>
<input type="text">
</body>
</html>
如:
[email protected];[email protected]
<script>
var add = function()
{
document.getElementsByTagName("input")[0].value = document.getElementsByTagName("a")[0].innerHTML;
}
</script>
<body>
<a href="javascript:void(3)" onclick="return add()">[email protected]</a>
<a href="javascript:void(4)" onclick="return add()">[email protected]</a>
<input type="text">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<input value="[email protected];[email protected] "/>
<script>
var parm = document.getElementsByTagName("input")[0].value;
var _split = parm.split(";");
for(var i =0;i<_split.length;i++)
{
alert(_split[i]);
}
</script>
</body>
</html>
非常感谢。不是这样的啊我的意思是在第一个例子基础上,有N个<a href="javascript:void(0)" onclick="return add()">[email protected]</a>插入
<input type="text">,并是分开的"aaa"<[email protected]>;"ccc"<[email protected]>
var add = function(id)
{
if(document.getElementById("inputName").value==""){
document.getElementById("inputName").value=id.innerHTML;
}else{
document.getElementById("inputName").value+=","+id.innerHTML;
}
}
</script>
<body>
<a href="javascript:void(0)" onClick="return add(this);">[email protected]</a>
<a href="javascript:void(0)" onClick="return add(this);">[email protected]</a>
<input type="text" name="inputName" id="inputName">
就是在收件人中增加多个邮件地址,当然一个也能发送<form name="phpmailer" action="send.php" method="post">
<input type="hidden" name="submitted" value="1"/>
收件人: <input type="text" size="50" name="user[]" /><br>
标题: <input type="text" size="50" name="title" /><br>
内容: <input type="text" size="50" name="content" />
<br/>
<input type="submit" value="发送"/>
</form>
收件人: <input type="text" size="50" name="user[]" />中的邮件地址格式为为:[email protected],[email protected],[email protected]点击发送就把邮件发送给三个邮箱了
我在网上找了一段代码但是不行:<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$arrUser = $_POST['user'];
..............$mailsto = explode(",",$arrUser);
for ($i=0;$i<count($mailsto);$i++)
{
echo "$mailsto";
echo"<br>";
$mail->AddAddress($mailsto[$i]);
}
<html>
<body>
<h3>phpmailer Test</h3><form name="phpmailer" action="send.php" method="post">
<input type="hidden" name="submitted" value="1"/>
email: <input type="text" size="50" name="address" /><br>
titie: <input type="text" size="50" name="title" /><br>
content: <input type="text" size="50" name="content" />
<br/>
<input type="submit" value="发送"/></form><script>
var add = function(id)
{
if(document.getElementById("address").value==""){
document.getElementById("address").value=id.innerHTML;
}else{
document.getElementById("address").value+=";"+id.innerHTML;
}
}
</script>
<table border=1>
<tr>
<td><input type="checkbox" size="50" name="address" /></td>
<td>lixuenong</td>
<td><a href="javascript:void(1)" onClick="return add(this);">[email protected]</a></td></tr><tr>
<td><input type="checkbox" size="50" name="address" /></td>
<td>lixn</td>
<td><a href="javascript:void(1)" onClick="return add(this);">[email protected]</a></td></tr></table><input type="submit" value="插入地址"/>------------------有没有办法点击两个checkbox后把这两个地址插入插入form中
</body>
</html>