note 36599 deleted from function.include by didou
| From: | didou@php.net | Date: | Wed, 22 Oct 2003 12:22:48 +0000 |
| Subject: | note 36599 deleted from function.include by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59122@lists.php.net to get a copy of this message | ||
Note Submitter: John
----
I have a form page written in php, and makes calls to seperate cgi scripts written in perl. Php code
below
looks like this:
<? $all_vars = $_SERVER["QUERY_STRING"];
$QSTRING = $QUERY_STRING;
while (list ($header, $value) = each ($HTTP_POST_VARS))
{$value=urlencode($value);
$QSTRING = $QSTRING.'&'.$header.'='.$value;}
if(!$all_vars){$all_vars="p_ac=$QSTRING";}
//calls cgi form script.
include("http://$domain/cgi-bin/form.cgi?$all_vars");
?>
form.cgi accually does the work, prints out the form , checks for required fields, writes to DB and
upload images or files required by the form. (This is a very complicated script and
tied to other components)Form printed out also points the php page and since the action or control
varaiables are passed in include() function. It works great, But the thing is....
It does not work with a file upload when called with include() with in the php script,
is there a way I can fix this.