Forum Moderators: coopster

Message Too Old, No Replies

Update Script URI Too Large

Update Script URI Too Large Is their an Easy Way to remove?

         

m4tt

1:26 pm on May 5, 2006 (gmt 0)

10+ Year Member



I am using a script that has featured a few times in this forum to update data in a mysql db.

[webmasterworld.com...]

It works great however now recieve the following

error:

Request-URI Too Large
The requested URL's length exceeds the capacity limit for this server.

request failed: URI too long

A (shortened) example:

update.php?ud_id=2&ud_pagename=products&ud_pageorder=2&ud_content=

Does anyone know how to remove the additional info at the end of the uri? I have tried converting to post and playing around with no success, any help would be appreciated.

eelixduppy

5:03 pm on May 5, 2006 (gmt 0)



Hello...

You may find some help here: [apache.org...]

Good luck!

eelix

m4tt

10:11 pm on May 5, 2006 (gmt 0)

10+ Year Member



Thanks, do you know if I add this to the .hta as I tried this and I got a 500 Internal Error

Key_Master

10:15 pm on May 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have to implement it in your server config file, httpd.conf

m4tt

9:34 am on May 6, 2006 (gmt 0)

10+ Year Member



What would be the best limit to set it to?

m4tt

9:56 am on May 6, 2006 (gmt 0)

10+ Year Member



Does anyone know if there is a way of changing the get to a post in the script mentioned above?

eelixduppy

10:53 am on May 6, 2006 (gmt 0)



You can do something like this to change it to a post:


<form action=update.php method=post>
<input type=hidden name='ud_id' value='2'>
<input type=hidden name='ud_pagename' value='products'>
<input type=hidden name='ud_pageorder' value='2'>
//continue for all of the post variables
<input type=submit value='Click here to continue'>
</form>

Hope this helps

eelix

m4tt

11:04 am on May 6, 2006 (gmt 0)

10+ Year Member



Thanks eelix, is there any reason they the inputs have to be hidden? Will it work fine if they are not hidden?

eelixduppy

9:15 pm on May 6, 2006 (gmt 0)



It will work if they are not hidden, but if they aren't hidden then something will show up on the screen(ie a text box). I'm not sure if this is what you want.

eelix