|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem passing variables through a URL!
I'm passing a series of variables through a URL and I noticed that you can only pass a certain amount of data. After so much, the new page will not show any data. Is there a specific number of characters that you can pass through the URL, and if so, is there any possible work-around for this problem? My main goal is to pass variable-length data pulled from a database. There could be several hundreds or even thousands of characters that I need to pass.
![]() |
|
#2
|
||||
|
||||
|
Yep, there is a limit to the amount of GET data. If my memeory servers my well, it's 255 bytes (characters). I'm not sure if this is before or after url encoding.
With that amount of data, I suggest going either to a form with POST data, or writing some of if off to a session. Good luck |
|
#3
|
|||
|
|||
|
Quote:
Looks like I can post around 1024 characters before I start seeing a problem. What's weird is each IE browser I use is different. Some browsers will support more than 1024 characters while another one that I'm using supports less than 900 characters. I'm going to look at using a session. |
|
#4
|
||||
|
||||
|
Never trust on IE for testing your code, both for your php and for your HTML. That piece of **** is the least standards comliant thing on the net.
Get a decent browser, like Opera or Mozilla, test there, and if everything works, your code is ok, and IE won't make a fuss either. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Problem passing variables through a URL! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|