亲爱的链接从PHP重定向
我有网站链接的数据库,它列出的主要文件,当我尝试点击该链接就得到该数据库链接重定向。 我的代码是:
file: test.php
<?php
// getting from database
echo '<li onclick=\"window.location='.$result->website.'\">
<a href="#">'.$result->option.'</a></li>';
?>
The Main.html calls that test.php
while ajax
$.post("test.php", {queryString: ""+inputString+""}, function(data){
});
怎么办呢? 任何想法是否有可能与服务器端脚本?我的php代码有什么问题?
你的问题很不清楚。可能会发布更多您使用的代码,以及您希望最终的HTML在发送到用户浏览器时的样子。 – 2010-07-31 04:08:55
我刚刚编辑让检查 – venkat 2010-07-31 04:19:25
<?php $ link =“www.google.com”; echo“Click here”; ?>上面的代码不工作为什么它不重定向谷歌,如果你解决这个对我来说 – venkat 2010-07-31 04:33:18