Simple Blog - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21) +---- Thread: Simple Blog (/showthread.php?tid=3881) |
Simple Blog - nevets04 - 12-23-2009 This is my fourth project I think O.o, it is a very basic blogging tool. Download http://www.mediafire.com/?tmxlyn1j4tq RE: Simple Blog - Gaijin - 12-23-2009 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"); RE: Simple Blog - nevets04 - 12-23-2009 (12-23-2009, 04:18 PM)Master of The Universe Wrote: Not bad, but I see you always use JavaScript to redirect the user. Thanks, I'll keep that in mind, I just knew the javascript one because of XSS > : D RE: Simple Blog - Jamza - 12-23-2009 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. RE: Simple Blog - Gaijin - 12-23-2009 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 |