Re: Session var read by form C++ CGI prog ?

From: Date: Tue, 02 Sep 2003 22:35:03 +0000
Subject: Re: Session var read by form C++ CGI prog ?
Groups: php.general 
Request: Send a blank email to php-general+get-161498@lists.php.net to get a copy of this message
On Tuesday, September 02, 2003, at 05:12PM, Chris Shiflett <shiflett@php.net> wrote: >--- John Bryan <johnbryan@mac.com> 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 variables will be 1 and 2, respectively. > Thanks, Chris. That's pretty cool. I wish I had time to rewrite this dang cpp prog in php or something that better lends itself to these things. >Please keep in mind that this is a PHP list... > Will do. 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. j b

« previous php.general (#161498) next »