Require "header.Php"
if (($_SERVER['REQUEST_METHOD']) == 'POST'){
$username=addslashes($_POST['username']);
$email=addslashes($_POST['email']);
$password=addslashes($_POST['password']);
}
Asked
Active
Viewed 74 times
-2

Slava Rozhnev
- 9,510
- 6
- 23
- 39

Adebiyi
- 1
- 1
-
add ";" after your Require "header.Php" => Require "header.Php"; – svgta Oct 03 '22 at 12:41
-
additionally, parentheses around a var does nothing and addslashes just mangles the input – Lawrence Cherone Oct 03 '22 at 12:47
1 Answers
0
You don't have semicolon after Require "header.Php". It should be:
Require "header.Php";

Lukas
- 2,263
- 1
- 4
- 15
-
1You wouldn't normally answer questions which are solved by typos like this. – Nigel Ren Oct 03 '22 at 12:42