Re: Passing LARGE (1500-2500 chars) variable from JScript to PHP?
| From: | chrissl \[christopher czettel\] | Date: | Mon, 13 Aug 2001 01:50:34 +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-62362@lists.php.net to get a copy of this message | ||
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('data') with data in this format:
<form method="post" action="youphpscript.php" name="formname">
<input type="hidden" name="youvarname" value="youdatatosend">
</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.