Support Forums

Full Version: Simple Blog
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is my fourth project I think O.o, it is a very basic blogging tool.

Download
http://www.mediafire.com/?tmxlyn1j4tq
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"); 
(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
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.
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