sb17joker Posted March 17, 2012 Report Share Posted March 17, 2012 Hi guys, I have an issue that I'm coming up with on the content management system setup, I have built out a pretty decent (I think anyways lol) cms from this setup, & have found an issue that is kinda baffling me... I know why, but not sure what to do about fixing it.... if I type "info hello <h1 id="bummer">" in a wysiwyg, or a textbox (maybe even a oneline, not sure) I will get in a print_r($_POST) Array ( [uri] => ticketing [block] => content_maincontent [field] => info [nbsp;_hello_ "bummer"> ) I know it has to do with the javascript that builds the datastring, but how to resolve this issue? var dataString = 'uri=' + uri + '&block=' + block + '&field=' + content; thanks! Scott Link to comment Share on other sites More sharing options...
sb17joker Posted March 17, 2012 Author Report Share Posted March 17, 2012 also just for info to help, when I do a print_r(array_keys($_POST)); I get: Array ( [0] => uri [1] => block [2] => field [3] => nbsp;_hello_ showing that it actually made another array value because of the & in the field. Link to comment Share on other sites More sharing options...
falkencreative Posted March 17, 2012 Report Share Posted March 17, 2012 Take a look here: http://www.killersites.com/community/index.php?/topic/5878-cms-tutorial-having-issues/page__p__26818__hl__cms__fromsearch__1#entry26818 Link to comment Share on other sites More sharing options...
sb17joker Posted March 17, 2012 Author Report Share Posted March 17, 2012 Thanks Ben, I'll give those fixes a try. Php I'm pretty fluent in, javascript I'm still a bit shaky on... I hope to give you a copy of my completed project to browse & give constructive criticism on. Thanks for creating a great tutorial. Link to comment Share on other sites More sharing options...
sb17joker Posted March 18, 2012 Author Report Share Posted March 18, 2012 got it working great now, used the {id: id, field: content} method. Thanks again for the help Scott Link to comment Share on other sites More sharing options...
falkencreative Posted March 18, 2012 Report Share Posted March 18, 2012 Good to hear. I'm glad you found the series useful. =) Link to comment Share on other sites More sharing options...
Recommended Posts