How to delete an entry from "My quotes"?
Passing LARGE (1500-2500 chars) variable from JScript to PHP?
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java Programming > Passing LARGE (1500-2500 chars) variable from JScript to PHP? 22 October 2008 14:19:35

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

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

News.Fbcc.Com 12 August 2001 21:55:16
 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


Add comment
Inйrcia Sensorial 13 August 2001 01:08:47 permanent link ]
 I don't think it is possible to pass so much chars in a href, or URL for
the matter. Is it really necessary? Couldn't you first write somewhere
(db/file) those chars and retrieve it later, referencing it on the href?

--


Julio Nobrega.

2B||!BB - That's the question.

"News.Fbcc.Com" <AndreBajew@KatyTex­as.Com> wrote in message
news:20010812175808­.8234.qmail@pb1.pair­.com...> 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>


Add comment
Richard Lynch 13 August 2001 01:57:43 permanent link ]
 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/ar­tists.htm
Volunteer a little time: http://chatmusic.co­m/volunteer.htm
----- Original Message -----
From: News.Fbcc.Com <AndreBajew@KatyTex­as.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>

Add comment
News.Fbcc.Com 13 August 2001 05:41:54 permanent link ]
 Wow, seems pretty obvious now that you've said it, Richard, but then that's
how it always works.

Yes, I can just write it all to a file and then upload that to the server
then can grab it from there with PHP. Ahhh, life is GOOD! Worst case, the
the user will have to click twice, once for the upload and again to confirm
the update. AWESOME! You have no idea how stuck I was on that on. I'll have
a look/listen at some of those CD's.

Thanks again!
Andre


"Richard Lynch" <ceo@l-i-e.com> wrote in message
news:00ef01c1237a$7­4dff0a0$6401a8c0@Lyn­chux100...> 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
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/ar­tists.htm> Volunteer a little time: http://chatmusic.co­m/volunteer.htm> ----- Original Message -----> From: News.Fbcc.Com <AndreBajew@KatyTex­as.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
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> >


Add comment
News.Fbcc.Com 13 August 2001 05:43:05 permanent link ]
 Thank you for the response Julio! That's what I will do is write to a file
and then upload that file. From there I can have PHP get to that file for
insert/update into a MySQL database.

Thanks much!
Andre


"InйRcia Sensorial" <inerte@hotmail.com­> wrote in message
news:20010812210410­.959.qmail@pb1.pair.­com...> I don't think it is possible to pass so much chars in a href, or URL for> the matter. Is it really necessary? Couldn't you first write somewhere> (db/file) those chars and retrieve it later, referencing it on the href?>
-->
Julio Nobrega.>
2B||!BB - That's the question.>
"News.Fbcc.Com" <AndreBajew@KatyTex­as.Com> wrote in message> news:20010812175808­.8234.qmail@pb1.pair­.com...> > 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
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> >


Add comment
Chrissl 13 August 2001 05:50:34 permanent link ]
 all you need is a unvisible iframe (<IFRAME width="0" height="0"
name="framename"> ... </IFRAME>) and give it a name.

then, you do a framename.write('da­ta') with data in this format:

<form method="post" action="youphpscrip­t.php" name="formname">
<input type="hidden" name="youvarname" value="youdatatosen­d">
</form>

followed by a formname.submit();

that's about all it is.....

k/r

chrissl
ICQ#54897804
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.



Add comment
Guest 19 August 2008 11:18:14 permanent link ]
 http://www.globalgui­deline.com
Add comment
Guest 22 October 2008 14:19:35 permanent link ]
 :-D­
Guest 19 August 2008 11:18:14 [ permanent link ]
:-\­
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java Programming > Passing LARGE (1500-2500 chars) variable from JScript to PHP? 22 October 2008 14:19:35

see also:
leak()
ext/standard/tests/math/log.phpt…
Updated getanyrr.patch, now…
pass tests:
Тест - бяка
see also:
Sansa guide: how to get videos and…
How to Rip DVD to iPhone 3G, iPod , AVI…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .