Webspeeder
asked on
PHP - Error when submitting page: Request-URI too large
I have a PHP program that submits a query to a remote database. There are options to have 10 to 50 items displayed on the screen. When I choose 10 items to display, all works well.
When I choose 30 to 50, I get the
Request-URI too large error
The requested URL's length exceeds the capacity limit for this server.
I understand "why" the error is tripped, but I can't figure out where in the code to look. If I try message, nothing displays to the screen. What I think I need is a PHP "error catcher" or something like that.
Any ideas?
When I choose 30 to 50, I get the
Request-URI too large error
The requested URL's length exceeds the capacity limit for this server.
I understand "why" the error is tripped, but I can't figure out where in the code to look. If I try message, nothing displays to the screen. What I think I need is a PHP "error catcher" or something like that.
Any ideas?
Can you change your form from GET to POST? That would eliminate the issue altogether.
So if you are using $_GET['var'] you will need to change those to $_POST['var']. If you are using $_REQUEST['var'] then you do not need to change anything.
Not saying you are using $_REQUEST but if you are please use $_POST or $_GET as it is the proper way.
If I am way off the mark here post some code so I can help you further.
So if you are using $_GET['var'] you will need to change those to $_POST['var']. If you are using $_REQUEST['var'] then you do not need to change anything.
Not saying you are using $_REQUEST but if you are please use $_POST or $_GET as it is the proper way.
If I am way off the mark here post some code so I can help you further.
ASKER
I'm actually in talks with the people in control of the remote database to set it up for a post. Right now I believe it is using a get because of the error.
The $_GET[], if the parameters are sent via the URL, will the $_POST[] work?
The $_GET[], if the parameters are sent via the URL, will the $_POST[] work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I knew that. I had tunnel vision, making it too complicated.
ASKER
Thanks.
ASKER
ini_set('display_errors', 1);
error_reporting(E_ALL);
and it didn't work.