Jump to content

Form issues


lococobra

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.