【发布时间】:2014-05-20 14:31:23
【问题描述】:
我一直在帮助一位朋友在他的网站上修复他的付款表单,但是在修复了一些数据库错误之后,现在出现了一个我似乎无能为力的错误。报错如下:
注意:未定义变量:strEPDQ in /home/sites/mulgas.co.uk/public_html/payments.php 第 274 行
现在看代码后看不出问题由于代码很多,我把它切到相关的部分:
#for each line in the response check for the presence of the string 'epdqdata'
#this line contains the encrypted string
$response_line_count=count($response_lines);
for ($i=0;$i<$response_line_count;$i++){
if (preg_match('/epdqdata/',$response_lines[$i])){
$strEPDQ=$response_lines[$i];
}
}
?>
如果您需要更多信息,我会提供
【问题讨论】:
-
只需将
$strEPDQ = '' ;设置在count()的顶部