note 36599 added to function.include
| From: | John at rn2 dot php dot net | Date: | Wed, 15 Oct 2003 21:49:58 +0000 |
| Subject: | note 36599 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-58667@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36599
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36599&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36599&report=yes
Search -- http://master.php.net/manage/user-notes.php