Re: [phplib] Max url length From: brad (brad <email protected>)
Date: 08/01/00

nrosenb2 <email protected> wrote:

> 2 questions ...
>
> 1) Is there a max limit on a url length in netscape?
> I'm send arguments with $sess->purl("file.php3?$my_args"); where $my_args is
> made up of 2 x 32 character id's, from md5(uniqid($hash)), and a unix
> timestamp. In IE5 all is o.k. however in Netscape it cuts off the end parts and
> hence my sql statements fail.

This is a major source of bugs and unchartered vendor assumptions. The problem lies

with hardcoded max lengths in the browsers.

My advice to you is simple: Don't pass data via the URL! IE behaves differently
across versions and between the mac and Windows. Different versions have different
max lengths. Most often, it will simply not open a window of enable a link of the
string
is too long, resulting in "unclickable" links.

Netscape is worse: It has difference max lengths but across different versions and
platforms...
but it NEVER disables a link. Rather, it makes all links clickable, but then
crashes or overwrites
its own memory, severely corrupting itself and possibly causing Windows to fail
(Linux doesn't
fail, of course).

>
>
> 2) Is there any other way to submit a form without a submit button or without an
> image (ie: using text, like a link) If I could get this right, the above
> problem would not exist as I could submit all the vars in a form.

Use hidden fields and the POST method and you are okay.

Brad

>
>
> Thx
>
> Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>