Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?

From: Date: Sun, 12 Aug 2001 21:57:43 +0000
Subject: Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62347@lists.php.net to get a copy of this message
Any server along the way is allowed to chop GET requests to, like, 255 characters. Any server along the way is allowed to chop POST requests to, like, 1024? characters. *MOST* won't chop either, any more, but you're safe with POST instead of GET. You *COULD* however, try this to guarantee delivery: Breaking up the HTML into "packets" and POST each packet successively with a numbering scheme whereby PHP holds each packet in a temp table and assembles them when all packets have arrived. Dunno if JavaScript will let you execute multiple POSTs and ignore the returning HTML or not though... Your best bet by far is to have JavaScript execute a POST with a FILE UPLOAD. You'll have to figure out if JavaScript can do that, though... -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: News.Fbcc.Com <AndreBajew@KatyTexas.Com> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Sunday, August 12, 2001 12:55 PM Subject: Passing LARGE (1500-2500 chars) variable from JScript to PHP? > I want to pass a large (easily 1500-2500 characters) variable between a > DHTML object using Jscript over to a PHP script to ultimately update a MySQL > database. I know that I can pass a variable along with the link, i.e. > location.href=etc. etc., but I believe there is a limit on the size of an > href. What I am doing is editting text and am using MSIE specific functions > to create HTML on the fly which I then want to pass to a PHP script to > update my database. > > Any help would be SINCERELY appreciated!! > Merci, (or is that mercy?) > Andre > >

« previous php.general (#62347) next »