Jump to content

Archived

This topic is now archived and is closed to further replies.

lococobra

Form issues

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[!--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]

Share this post


Link to post
Share on other sites
keeB: thanks me making me feel like an idiot, and completely solving my problems :P

btw, im only 15 years old... so it's kind of understandable that I would have some problems.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.