Jump to content

Security Issue


astronaut

Recommended Posts

Hi, recently I was told that my website could get hacked because of poorly written code. I am a novice newbie programmer, so all I know is to write simple if/else statements for now.

Is this code truely vulnerable to a hacker, and is there a better way of coding this?

[color=red]<?php
if ($result=='1'){
include("result.php");
}
?>
  <a href="<? echo $PHP_SELF?>?result=1">Click here to see page 2</a>[/color]
Link to comment
https://forums.phpfreaks.com/topic/34470-security-issue/
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.