Jump to content

Weird $_get Response


23.12.2012

Recommended Posts

Well... I found this one to be very weird. I've got the following URL:

http://localhost/sangym2/edit_user.php?id=1&name=Unknown%20Humanoid&address=&phone=&email=spam@yahoo.com&reg_nr=0001&others=UNKH

Here's the error I get:

Notice: Undefined index: id in /Library/WebServer/Documents/sangym2/edit_user.php on line 27

And here's the line in edit_user.php which causes the error:

$id = mysqli_real_escape_string($db_conn, trim($_GET['id']));

I tried var_dump() on $id, and I get string(0): .

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...