HTTP_POST_VARS not availlable ??
| From: | Hans-Peter Straub | Date: | Thu, 17 Feb 2000 18:30:58 +0000 |
| Subject: | HTTP_POST_VARS not availlable ?? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10399@lists.php.net to get a copy of this message | ||
Hello all,
since i have updated from php-3.0.7 to latest CVS i get teh following error
when i am going to save the poted variables to a database.
Warning: Variable passed to each() is not an array or object in
/var/httpd/htdocs/lms_shop/admin/head.php on line 21
But i am sure that the HTTP_POST_VARS are all set in my script.
I have compile php with the following options: and with apache 1.3.11:
./configure \
--with-apxs=/var/httpd/bin/apxs \
--with-sybase-ct=/opt/sybase \
--with-gd=/usr \
--with-ttf=/usr \
--with-mysql=/usr \
--with-dbase=yes \
--with-filepro=yes \
--with-jpeg-dir=/usr \
--with-tiff-dir=/usr \
--with-zlib-dir=/usr \
--with-ldap=/usr \
--with-imap=/usr/src/wwwdev/contrib/imap \
--with-xml=/usr
Do somone have any idea
********************
if($save_vars) {
while (list($var, $value) = each($HTTP_POST_VARS)) {
$insert_query=("UPDATE KONFIGURATION SET WERT = '$value' WHERE (PARAM =
'$var') AND (Thema = '$act_write_theme')") ;
$insert_result=$db_query($insert_query) ;
insert_result ;
}
}
--
-------------------------------*
GKS I-NetPartner GmbH
Hans-Peter Straub
Seewiesenstrasse 12
D-73054 Eislingen
--
Phone: +49 7161 9849955
Fax: +49 7161 9849956
--
eMail: straub@i-netpartner.de
Web: http://www.i-netpartner.de
-------------------------------*