0
$var = <<<MY_MARKER
<script type="text/javascript">
function asso(){
showSpoiler("assoluto");
var x = document.getElementById("assoluto");
x.write('$str');
}
</script>
MY_MARKER;
echo $var;
的代碼是在PHP部分,這是從PHP機valuted的代碼:文件撰寫問題
<script type="text/javascript">
function asso(){
showSpoiler("assoluto");
var x = document.getElementById("assoluto");
x.write('<div id="log" style="position:absolute;right:0;left:0;top:0;background:black;height:10px;">
<form action="/myblog/index.php" method="POST">
<fieldset>
<legend>Login:</legend>
<label><input name="username" size="9" maxlength="15" type="text" value="username"></label>
<label><input name="password" size="9" maxlength="15" type="password" value=""></label>
<label><input name="submit" type="submit" value="Login"></label>
<label><u><a href="index.php?pag=5">Registrati</a></u></label>
</fieldset>
</form>
</div>
');
}
</script>
從控制檯中的誤差是未捕獲的語法錯誤:意外標記x的線非法。寫(.....);
你從哪裏調用函數? – bharath 2011-01-20 16:28:25
你有沒有試過直到你弄明白什麼時候破解代碼? – 2011-01-20 16:33:18