lococobra Posted March 15, 2006 Share Posted March 15, 2006 www.lococobra.com/blender/chat.php is the page I'm having issues with.The page allows you to post your own comments and such, the problem is... once the form is filled out and put in my database... it comes back with no spacing (new lines are not viewed), and every ' has a / before it.These are probably issues with the way I'm doing the coding... so here's a shortened explination...Chat.php (mainpage) calls entries.php (parser) which imports chatlog.php (database)entries.php figures out where all the entries should be, and assigns links for multiple pages if there are more then 10 entries.When you make a post,posting.php makes a copy of chatlog.php and then inserts a new entry in it (from the form information collected). Then you are forwarded back to chat.php, which displays the new entry.Sorry, but I can not post the PHP because it is 100% coded by me, and I dont really feel like giving it away. However, I am happy to answer any question about specific parts of my code.Thanks. Quote Link to comment Share on other sites More sharing options...
cheyner11 Posted March 15, 2006 Share Posted March 15, 2006 without seeing your code it is tough to make a quick assumption as to the problem. You do not need to post everything, just the form handler would be enough. Quote Link to comment Share on other sites More sharing options...
keeB Posted March 15, 2006 Share Posted March 15, 2006 [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Sorry, but I can not post the PHP because it is 100% coded by me, and I dont really feel like giving it away. [/quote]Your code isn't anything special, and anyone on here that would answer your question could code your chat system in 5 minutes..That being said, go to www.php.net and look for [b]addslashes()[/b] and [b]removeslashes() [/b], and also [b]nl2br()[/b] Quote Link to comment Share on other sites More sharing options...
lococobra Posted March 15, 2006 Author Share Posted March 15, 2006 keeB: thanks me making me feel like an idiot, and completely solving my problems :Pbtw, im only 15 years old... so it's kind of understandable that I would have some problems. Quote Link to comment 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.