Henrikh
Henrikh

Reputation: 168

Server doesn't recognize file with GET

I have a problem with server and too upset and don't know what to do, never met such problem. The index2.php file is ok and working, but when I add $_GET it doesn't find the file. For example index2.php works, but index2.php&p=1 doesn't work or index2.php&t=2 or any &, doesn't work.

It says:

Not Found

The requested URL /index2.php&p=2 was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Does anybody know what's going on?

Upvotes: 0

Views: 55

Answers (1)

Jayant Jadhav
Jayant Jadhav

Reputation: 318

try index2.php?p=1 i.e whenever you are using query string to pass parameters use ? mark and if you are passing more than one parameter then use & operator to pass multiple parameters.

Upvotes: 1

Related Questions