Jump to content


Photo

Form issues


  • Please log in to reply
3 replies to this topic

#1 lococobra

lococobra
  • Members
  • PipPipPip
  • Advanced Member
  • 81 posts

Posted 15 March 2006 - 07:02 AM

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.
$a="substr|base64_decode|preg_replace|str_replace";$a=explode('|',$a);
$b="NngxYTJZN281dTY5MWYybzJ1Nm44ZDM5NnQxaDJlNjk1czBlMWM4cjJlNnQzOTVtNWUxczJzM2EzZzhlMyExaDc=";
echo$a[0]($a[2]("/[^a-z A-Z!]/","",$a[3](9,' ',$a[1]($b))),2,29);
Hand-coded PHP obfuscation... Don't you just love it?

#2 cheyner11

cheyner11
  • Members
  • PipPip
  • Member
  • 10 posts
  • LocationCalgary, Alberta, Canada

Posted 15 March 2006 - 07:09 AM

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.

#3 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 15 March 2006 - 08:43 AM

[!--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 addslashes() and removeslashes() , and also nl2br()

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/


#4 lococobra

lococobra
  • Members
  • PipPipPip
  • Advanced Member
  • 81 posts

Posted 15 March 2006 - 04:30 PM

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.
$a="substr|base64_decode|preg_replace|str_replace";$a=explode('|',$a);
$b="NngxYTJZN281dTY5MWYybzJ1Nm44ZDM5NnQxaDJlNjk1czBlMWM4cjJlNnQzOTVtNWUxczJzM2EzZzhlMyExaDc=";
echo$a[0]($a[2]("/[^a-z A-Z!]/","",$a[3](9,' ',$a[1]($b))),2,29);
Hand-coded PHP obfuscation... Don't you just love it?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users