Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Blog
#1
This is my fourth project I think O.o, it is a very basic blogging tool.

Download
http://www.mediafire.com/?tmxlyn1j4tq
Reply
#2
Not bad, but I see you always use JavaScript to redirect the user.
That's not needed, PHP has it's own function, header();

PHP Code:
header("Location: http://localhost/blog.php"); 
Reply
#3
(12-23-2009, 04:18 PM)Master of The Universe Wrote: Not bad, but I see you always use JavaScript to redirect the user.
That's not needed, PHP has it's own function, header();

PHP Code:
header("Location: http://localhost/blog.php"); 

Thanks, I'll keep that in mind, I just knew the javascript one because of XSS > : D
Reply
#4
PHP Code:
header("Location: http://localhost/blog.php"); 

Wouldnt be affected by XSS as it has no user input into it. Its a fixed string.
LockerZ Invite Required? PM Me.
Visit TechBeat for the latest Technology News
[Image: jamzasigniture.jpg]
Reply
#5
Just as Jamza said, to prevent XSS you need to clean the user input.
This might help you!
http://www.supportforums.net/showthread.php?tid=1055
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)