日期:2014-05-17 浏览次数:20443 次
<!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=utf-8" /> <title>无标题文档</title> <script> function GetXmlHttpObject() { var XMLHttp=null; try { XMLHttp=new XMLHttpRequest(); } catch(e) { try { XMLHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { XMLHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return XMLHttp; } function submit_form(tag) { XMLHttp=GetXmlHttpObject(); var aurl="deal_ajax.php?tag="+tag+"&url="+document.getElementById("url").value+""; XMLHttp.open("GET",aurl,true); XMLHttp.send(null); XMLHttp.onreadystatechange=function() { if(XMLHttp.readyState==4&&XMLHttp.status==200) { document.getElementById("status").innerHTML=XMLHttp.responseText; } } } </script> </head> <body> <div align="center" style="text-align:center"> <form action="" method="post"> <table width="900" border="1"> <tr> <td>url</td> <td><input name="url" type="text" style="width:400px" id="url"/></td> </tr> <tr> <td>message</td> <td><textarea name="message" cols="" rows="" id="message"></textarea></td> </tr> <tr> <td><input name="save" type="submit" value="保存" id="save" onclick="submit_form('later')"/></td> <td><input name="fabu" type="submit" value="发布" id="fabu" onclick=""/></td> </tr> </table> </form> <div id="status"></div> </div> </body> </html>
<?php echo "#######@".$_REQUEST['url']; ?>
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />" . "<script type='text/javascript' language='javascript'>". "if(confirm('ok')){" . " window.location.href='{$href}';" . "} else