我有一個調用腳本在得到這個信息的功能:解析HTML與JavaScript的GET提交
color = color_class(statistics[0]);
class = get_class(statistics[0]);
class = '<font style="color:'+color+';">'+class+'</font>';
switch(stage){
case 1: call_file('tut_class.php?choice='+class,'main'); break;
}
這看起來是這樣的:
<font style="color:#0d84b6;">Class One</font>
但在控制檯它如下所示:
tut_class.php?choice=%3Cfont%20style=%22color: //the rest is missing
所以我不能在PHP腳本中獲取它顯示。有沒有辦法解決這個問題?
嘗試事先將整個字符串設置爲一個變量 – pandavenger
當色彩不會被設置在CSS文件中時,什麼是指向調用span類。 – Sir
@pandavenger沒有修復這個問題:( – Sir