12-23-2009, 03:42 PM
12-23-2009, 04:18 PM
Not bad, but I see you always use JavaScript to redirect the user.
That's not needed, PHP has it's own function, header();
That's not needed, PHP has it's own function, header();
PHP Code:
header("Location: http://localhost/blog.php");
12-23-2009, 04:38 PM
(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
12-23-2009, 04:45 PM
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.
12-23-2009, 04:48 PM
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
This might help you!
http://www.supportforums.net/showthread.php?tid=1055