How to exchange > 1024 bytes of data with server?

J

Joakim Braun

Greetings,

I'm playing around with a web-based interface to MySQL that would let you
manage, create and use databases. So far I'm using PHP to talk to MySQL and
query strings to exchange the data with JavaScripted HTML pages.

Another posting brought up the fact that a URL can't be more than 1 024
bytes. How, then, could I exchange, say, up to 32 KB of locally edited data
with a PHP script on the server? I need that much, at least, since one of
the uses might be an editorial text-repository.

Input appreciated.

Joakim Braun
 
R

Reply Via Newsgroup

Joakim said:
Greetings,

I'm playing around with a web-based interface to MySQL that would let you
manage, create and use databases. So far I'm using PHP to talk to MySQL and
query strings to exchange the data with JavaScripted HTML pages.

Another posting brought up the fact that a URL can't be more than 1 024
bytes. How, then, could I exchange, say, up to 32 KB of locally edited data
with a PHP script on the server? I need that much, at least, since one of
the uses might be an editorial text-repository.

Input appreciated.

Joakim Braun

I might stand corrected here - but I work on a LAMPhp based server and
have also picked up javascript over the past months.

First off - your 'problem' is not javascript related (though you could
use javascript to perform checks on required data fields in your form data).

However... I believe the 1024byte limit relates only to form methods of
GET - I always use <FORM METHOD="POST"> and have submitted data far in
excess of the 1024byte limit...

Use the $_POST array to read your data from your form, in PHP.

Hope that helps,
randelld
 
J

Joakim Braun

Reply Via Newsgroup said:
Joakim Braun wrote:
I might stand corrected here - but I work on a LAMPhp based server and
have also picked up javascript over the past months.

First off - your 'problem' is not javascript related (though you could
use javascript to perform checks on required data fields in your form data).

However... I believe the 1024byte limit relates only to form methods of
GET - I always use <FORM METHOD="POST"> and have submitted data far in
excess of the 1024byte limit...

Use the $_POST array to read your data from your form, in PHP.

Hope that helps,
randelld

OK, thanks - I suspected there was a simple solution...

Joakim Braun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top