I need to use something like a session variable to make a variable available to an
existing form-invoked C++ program which takes as input a file being uploaded. Is this
even do-able ??If so, what am I missing here ???
The C++ prog used to use the REMOTE_USER env var set by the web server
Hi,
Had a similar problem when building upload progress bar. Initially i
used cookies but that had a few minor hiccups. What you can do is to
encode your variables into the query string. This is accessible as part
of the env. variables. Since you are familiar with C++ you will get the
hang of
Thanks, very much, Raditha.
Do you mean to pass my variable as a cgi parameter ?
If so, the problem is that this file that is being uploaded via the form to the
program MyCppProg.exe gets sent as THE input to the prog, apparently as a cgi-type
parameter through stdin (i.e. cin), so that when I
On 02 September 2003 19:22, Raditha Dissanayake wrote:
Hi,
Had a similar problem when building upload progress bar. Initially i
used cookies but that had a few minor hiccups. What you can do is to
encode your variables into the query string. This is
accessible as part
of the env.
On Tuesday, September 02, 2003, at 01:32PM, Ford, Mike [LSS] [EMAIL PROTECTED] wrote:
On 02 September 2003 19:22, Raditha Dissanayake wrote:
Hi,
Had a similar problem when building upload progress bar. Initially i
used cookies but that had a few minor hiccups. What you can do is to
Oh well, and i thought i knew everything about php :-(
Ford, Mike [LSS] wrote:
On 02 September 2003 19:22, Raditha Dissanayake wrote:
Hi,
Had a similar problem when building upload progress bar. Initially i
used cookies but that had a few minor hiccups. What you can do is to
encode your
Hello,
If you use input type='hidden' yes they will be part of the input
stream. What i suggested was you have
form method=post action=/cgi-bin/mycgi.exe?qid=123 then you can
retrieve the query string variable from the env. (at least this works
with perl cgi and i don't see why it shouldn't
From: John Bryan [EMAIL PROTECTED]
If so, the problem is that this file that is being uploaded
via the form to the program MyCppProg.exe gets sent
as THE input to the prog, apparently as a cgi-type
parameter through stdin (i.e. cin), so that when I try to
pass the value as a cgi parameter,
On Tuesday, September 02, 2003, at 02:04PM, Raditha Dissanayake [EMAIL PROTECTED]
wrote:
Hello,
If you use input type='hidden' yes they will be part of the input
stream. What i suggested was you have
form method=post action=/cgi-bin/mycgi.exe?qid=123 then you can
retrieve the query string
On Tuesday, September 02, 2003, at 01:55PM, CPT John W. Holmes [EMAIL PROTECTED]
wrote:
From: John Bryan [EMAIL PROTECTED]
If so, the problem is that this file that is being uploaded
via the form to the program MyCppProg.exe gets sent
as THE input to the prog, apparently as a cgi-type
From: John Bryan [EMAIL PROTECTED]
The file would already exist on the client side. They are
uploading the file to be processed by this program
MyCppProg.exe, which is invoked as a form 'action'.
This already works, but depends on the Apache variable
REMOTE_USER being set when user logs in,
On Tuesday, September 02, 2003, at 02:04PM, Raditha Dissanayake [EMAIL PROTECTED]
wrote:
Hello,
If you use input type='hidden' yes they will be part of the input
stream. What i suggested was you have
form method=post action=/cgi-bin/mycgi.exe?qid=123 then you can
retrieve the query string
--- John Bryan [EMAIL PROTECTED] wrote:
So looks like I can't have it both ways, i.e. POST and GET
Yes, you can.
form action=/blah.php?foo=1 method=post
input type=hidden name=bar value=2
input type=submit
The script blah.php can reference $_GET['foo'] and $_POST['bar']. The values of
these
On Tuesday, September 02, 2003, at 05:12PM, Chris Shiflett [EMAIL PROTECTED] wrote:
--- John Bryan [EMAIL PROTECTED] wrote:
So looks like I can't have it both ways, i.e. POST and GET
Yes, you can.
form action=/blah.php?foo=1 method=post
input type=hidden name=bar value=2
input type=submit
--- John Bryan [EMAIL PROTECTED] wrote:
Was/am thinking I could use php to set 'session' variable(s) that
would also be visible to an existing cpp prog currently invoked
from a form.
I missed most of this thread, since it appeared to be off-topic, but you might
consider changing the action
Chris is right on both counts. :-)
and this is exactly how i do it in my file upload progress bar.
best regards
raditha
Chris Shiflett wrote:
--- John Bryan [EMAIL PROTECTED] wrote:
So looks like I can't have it both ways, i.e. POST and GET
Yes, you can.
form action=/blah.php?foo=1
On Tue, 2 Sep 2003 15:48:46 -0700 (PDT)
Chris Shiflett [EMAIL PROTECTED] wrote:
--- John Bryan [EMAIL PROTECTED] wrote:
Was/am thinking I could use php to set 'session' variable(s) that
would also be visible to an existing cpp prog currently invoked
from a form.
I missed most of this
17 matches
Mail list logo