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); Quote 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 Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/235881-htmlspecialchars/#findComment-1212567 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.