xlameee Posted March 28, 2008 Share Posted March 28, 2008 Hi everyone I need your help I've got this error Warning: implode() [function.implode]: Invalid arguments passed in /home/XXXXXX/public_html/XXXXX/XXXXX/admin/index.php on line 265 EDIT PAGE : privacy_policy.php here is the line 265 <TEXTAREA name="text" rows=20 cols=80>'.stripslashes(implode("",$text)).'</TEXTAREA> Any advance can help me to fix that Thank you Nikolay Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/ Share on other sites More sharing options...
darkfreaks Posted March 28, 2008 Share Posted March 28, 2008 <?php stripslashes($text); implode("",$text); ?> Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/#findComment-502738 Share on other sites More sharing options...
kenrbnsn Posted March 28, 2008 Share Posted March 28, 2008 Is $text an array? The implode() function expects an array as it's second argument. Ken Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/#findComment-502740 Share on other sites More sharing options...
xlameee Posted March 28, 2008 Author Share Posted March 28, 2008 yes that <?php stripslashes($text); implode("",$text); ?> fix the error but I've got the problem now. This code is show me into the form box when I clear the code and add my privacy policy text and hit update button the text is disappear and this code is shown again into the form box. then I'm checking the website privacy policy section the text is there everything is OK but if know how to fix that will be better Sorry Ken I'm still new in PHP I don't know what is the array ??? Thank you Nikolay Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/#findComment-502760 Share on other sites More sharing options...
darkfreaks Posted March 28, 2008 Share Posted March 28, 2008 can u show us more of your code so we can properly help you ??? Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/#findComment-502764 Share on other sites More sharing options...
xlameee Posted March 28, 2008 Author Share Posted March 28, 2008 Sure this is the form from line 263-267 <FORM action="index.php" method="POST"> <INPUT type="hidden" name="q" value="'.$q.'"> <TEXTAREA name="text" rows=20 cols=80>'.stripslashes(implode("",$text)).'</TEXTAREA> <br><INPUT type="submit" name="submit" value="Save page"> </FORM>'; Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/#findComment-502769 Share on other sites More sharing options...
darkfreaks Posted March 28, 2008 Share Posted March 28, 2008 <?php echo' <TEXTAREA name="text" rows=20 cols=80>'.stripslashes(trim($text)).'</TEXTAREA>'; ?> Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/#findComment-502771 Share on other sites More sharing options...
xlameee Posted March 28, 2008 Author Share Posted March 28, 2008 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/technic7/public_html/mwi/alarm-system/admin/index.php on line 268 Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/#findComment-502781 Share on other sites More sharing options...
darkfreaks Posted March 28, 2008 Share Posted March 28, 2008 <?php echo' <TEXTAREA name="text" rows=20 cols=80>'.stripslashes(trim($text));.'</TEXTAREA>'; ?> Link to comment https://forums.phpfreaks.com/topic/98254-warning-implode-functionimplode-invalid-arguments-passed-in/#findComment-502782 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.