Xtremer360 Posted May 9, 2011 Share Posted May 9, 2011 I'm getting this error and not sure my fix. <b>Warning</b>: htmlspecialchars() expects parameter 1 to be string, array given in <b>/home/xtremer/public_html/efedmanager/processes/polls.php</b> on line <b>13</b><br /> $answer = explode(',', $_POST['answersList']); $answer = htmlspecialchars($answer); Link to comment https://forums.phpfreaks.com/topic/235881-htmlspecialchars/ Share on other sites More sharing options...
fugix Posted May 9, 2011 Share Posted May 9, 2011 $answer = explode(',', $_POST['answersList']); $_POST[''] is an array Link to comment https://forums.phpfreaks.com/topic/235881-htmlspecialchars/#findComment-1212558 Share on other sites More sharing options...
Xtremer360 Posted May 9, 2011 Author Share Posted May 9, 2011 Yeah i'm sorry I figured out I had to put it into my foreach loops Link to comment https://forums.phpfreaks.com/topic/235881-htmlspecialchars/#findComment-1212560 Share on other sites More sharing options...
fugix Posted May 9, 2011 Share Posted May 9, 2011 no problem Link to comment https://forums.phpfreaks.com/topic/235881-htmlspecialchars/#findComment-1212567 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.