Jump to content

XSS problem I need some help fixing...


interpim

Recommended Posts

OK... my bit of code is for paging in a guestbook script.  if anyone puts anything into the address bar besides a number it will display it aswell :/  anywho, does anyone know how to prevent this?

 

here is my code snippet.

 

$page = 1;
if(isset($_GET['page'])){
$page = $_GET['page'];
$x = $page*5-5;
}

Link to comment
https://forums.phpfreaks.com/topic/86086-xss-problem-i-need-some-help-fixing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.