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

From: Date: Wed, 03 Sep 2003 01:01:01 +0000
Subject: Re: Session var read by form C++ CGI prog ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161504@lists.php.net to get a copy of this message
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 <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. Please keep in mind that this is a PHP list... Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/
-- http://www.raditha.com/php/progress.php A progress bar for PHP file uploads.

« previous php.general (#161504) next »