[英]how to use href property in php using anchor tag
我已经写了
echo '<a href="javascript:q=(document.location.href);void(open('http://example.com/submit.php?url='+escape(q),'_self','resizable,location,menubar,toolbar,scrollbars,status'));">'.'click here'.'</a>'
在PHP文件中它给
意外:标识符“ http”
错误。 请给我解决方法。
echo'<a href="javascript:q=(document.location.href);void(open(\'http://example.com/submit.php?url=\'+escape(q),\'_self\',\'resizable,location,menubar,toolbar,scrollbars,status\'));">click here</a>'
您需要在回声中转义引号试试这个
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.