why the form data is not complete??!!!
| From: | mack paul | Date: | Thu, 10 Apr 2003 00:49:05 +0000 |
| Subject: | why the form data is not complete??!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143243@lists.php.net to get a copy of this message | ||
porque el dato del formulario no completo!!
why the form data is not complete??!!!
here two files:
aqui dos archivos:
data00.php
/**********************************/
<!doctype html public "-//W3C//DTD HTML 4.0 file://EN>
<html>
<head>
<title>Title here!</title>
</head>
<body>
<form name"form01" action="data01.php" method="POST">
<input type="hidden" name="data"
value="%3C%3Fphp%0A%2F%2A+%0A+%2A+Protect+against+very+old+versions+of+4.0+%
28like+4.0RC1%29+which++%0A+%2A+don%27t+implicitly+create+a+new+stdClass%28%
29+when+you+use+a+variable+%0A+%2A+like+a+class.+%0A+%2A%2F+%0Aif+%28%21%24g
allery%29+%7B+%0A++++++++%24gallery+%3D+new+stdClass%28%29%3B+%0A%7D%0Aif+%2
8%21%24gallery-%3Eapp%29+%7B+%0A++++++++%24gallery-%3Eapp+%3D+new+stdClass%2
8%29%3B+%0A%7D%0A%0A%2F%2A+Version++%2A%2F%0A%24gallery-%3Eapp-%3Econfig_ver
sion+%3D+31%3B%0A%0A%2F%2A+Features+%2A%2F%0A%24gallery-%3Eapp-%3Efeature%5B
%22zip%22%5D+%3D+1%3B%0A%24gallery-%3Eapp-%3Efeature%5B%22rewrite%22%5D+%3D+
0%3B+%2F%2F+%28missing+%3Ci%3EGALLERY_REWRITE_OK%3C%2Fi%3E+--+it%27s+optiona
l%29%0A%24gallery-%3Eapp-%3Efeature%5B%22mirror%22%5D+%3D+0%3B+%2F%2F+%28mis
sing+%3Ci%3EmirrorSites%3C%2Fi%3E+--+it%27s+optional%29%0A%0A%2F%2A+Constant
s+%2A%2F%0A%24gallery-%3Eapp-%3EgalleryTitle+%3D+%22Galeria%22%3B%0A%24galle
ry-%3Eapp-%3EpnmDir+%3D+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodules%2F
gallery%2Fnetpbm%22%3B%0A%2F%2F+optional+%3Ci%3EImPath%3C%2Fi%3E+missing%0A%
24gallery-%3Eapp-%3Egraphics+%3D+%22NetPBM%22%3B%0A%24gallery-%3Eapp-%3Ehigh
light_size+%3D+%22200%22%3B%0A%24gallery-%3Eapp-%3Ezipinfo+%3D+%22%2Fusr%2Fb
in%2Fzipinfo%22%3B%0A%24gallery-%3Eapp-%3Eunzip+%3D+%22%2Fusr%2Fbin%2Funzip%
22%3B%0A%2F%2F+optional+%3Ci%3Euse_exif%3C%2Fi%3E+missing%0A%24gallery-%3Eap
p-%3EmovieThumbnail+%3D+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodules%2F
gallery%2Fimages%2Fmovie.thumb.jpg%22%3B%0A%24gallery-%3Eapp-%3EalbumDir+%3D
+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodules%2Fgallery%2Falbums%22%3B%
0A%24gallery-%3Eapp-%3EtmpDir+%3D+%22%2Ftmp%22%3B%0A%24gallery-%3Eapp-%3Epho
toAlbumURL+%3D+%22http%3A%2F%2Faruni.uni.edu.pe%2F%7Epaul%2Fmodules%2Fgaller
y%22%3B%0A%24gallery-%3Eapp-%3EalbumDirURL+%3D+%22http%3A%2F%2Faruni.uni.edu
.pe%2F%7Epaul%2Fmodules%2Fgallery%2Falbums%22%3B%0A%2F%2F+optional+%3Ci%3Emi
rrorSites%3C%2Fi%3E+missing%0A%24gallery-%3Eapp-%3EshowAlbumTree+%3D+%22no%2
2%3B%0A%24gallery-%3Eapp-%3EcacheExif+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3
EjpegImageQuality+%3D+%2295%22%3B%0A%24gallery-%3Eapp-%3EtimeLimit+%3D+%2230
%22%3B%0A%24gallery-%3Eapp-%3Edebug+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3Eu
se_flock+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3EexpectedExecStatus+%3D+%220
%22%3B%0A%24gallery-%3Eapp-%3EsessionVar+%3D+%22gallery_session%22%3B%0A%24g
allery-%3Eapp-%3EuserDir+%3D+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodul
es%2Fgallery%2Falbums%2F.users%22%3B%0A%24gallery-%3Eapp-%3Epnmtojpeg+%3D+%2
2ppmtojpeg%22%3B%0A%0A%2F%2A+Defaults+%2A%2F%0A%24gallery-%3Eapp-%3Edefault%
5B%22bordercolor%22%5D+%3D+%22black%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%
22border%22%5D+%3D+%221%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22font%22%5D
+%3D+%22arial%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22cols%22%5D+%3D+%223%
22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22rows%22%5D+%3D+%223%22%3B%0A%24gal
lery-%3Eapp-%3Edefault%5B%22thumb_size%22%5D+%3D+%22150%22%3B%0A%24gallery-%
3Eapp-%3Edefault%5B%22resize_size%22%5D+%3D+%22640%22%3B%0A%24gallery-%3Eapp
-%3Edefault%5B%22fit_to_window%22%5D+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3E
default%5B%22use_fullOnly%22%5D+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3Edefau
lt%5B%22print_photos%22%5D+%3D+%22shutterfly%22%3B%0A%24gallery-%3Eapp-%3Ede
fault%5B%22returnto%22%5D+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B
%22showOwners%22%5D+%3D+%22no%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22albu
msPerPage%22%5D+%3D+%225%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22showSearc
hEngine%22%5D+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22useOrigin
alFileNames%22%5D+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22displ
ay_clicks%22%5D+%3D+%22yes%22%3B%0A%24gallery-%3Eapp-%3Edefault%5B%22public_
comments%22%5D+%3D+%22yes%22%3B%0A%3F%3E%0A">
<input type="submit" value="Enviar">
</form>
</body>
</html>
/**********************************/
data01.php
/**********************************/
<!doctype html public "-//W3C//DTD HTML 4.0 file://EN>
<html>
<head>
<title>Title here!</title>
</head>
<body><?php
foreach($_POST as $key=>$value){
echo "nombre: ".$key."--valor: ".$value."<br>";
}
?>
</body>
</html>
/**********************************/
and here the output:
y aqui el resultado:
/**********************************/
nombre: data--valor:
%3C%3Fphp%0A%2F%2A+%0A+%2A+Protect+against+very+old+versions+of+4.0+%28like+
4.0RC1%29+which++%0A+%2A+don%27t+implicitly+create+a+new+stdClass%28%29+when
+you+use+a+variable+%0A+%2A+like+a+class.+%0A+%2A%2F+%0Aif+%28%21%24gallery%
29+%7B+%0A++++++++%24gallery+%3D+new+stdClass%28%29%3B+%0A%7D%0Aif+%28%21%24
gallery-%3Eapp%29+%7B+%0A++++++++%24gallery-%3Eapp+%3D+new+stdClass%28%29%3B
+%0A%7D%0A%0A%2F%2A+Version++%2A%2F%0A%24gallery-%3Eapp-%3Econfig_version+%3
D+31%3B%0A%0A%2F%2A+Features+%2A%2F%0A%24gallery-%3Eapp-%3Efeature%5B%22zip%
22%5D+%3D+1%3B%0A%24gallery-%3Eapp-%3Efeature%5B%22rewrite%22%5D+%3D+0%3B+%2
F%2F+%28missing+%3Ci%3EGALLERY_REWRITE_OK%3C%2Fi%3E+--+it%27s+optional%29%0A
%24gallery-%3Eapp-%3Efeature%5B%22mirror%22%5D+%3D+0%3B+%2F%2F+%28missing+%3
Ci%3EmirrorSites%3C%2Fi%3E+--+it%27s+optional%29%0A%0A%2F%2A+Constants+%2A%2
F%0A%24gallery-%3Eapp-%3EgalleryTitle+%3D+%22Galeria%22%3B%0A%24gallery-%3Ea
pp-%3EpnmDir+%3D+%22%2Fhome%2Faruni%2Fpaul%2Fpublic_html%2Fmodules%
/**********************************/
the setting of my server:
mi servidor:
PHP Version 4.3.2-RC1
System Linux hostname 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686
Build Date Mar 29 2003 21:37:53
Configure Command './configure' '--mandir=/usr/share/man'
'--with-apxs2=/usr/local/httpd/bin/apxs' '--enable-track-vars'
'--with-gd'
'--enable-ftp' '--enable-sysvsem' '--enable-sysvshm'
'--enable-sockets'
'--with-zlib=/usr' '--with-bz2=/usr' '--enable-calendar'
'--enable-ftp'
'--enable-mbstring' '--enable-memory-limit' '--enable-bcmath'
'--enable-shmop' '--enable-magic-quotes' '--enable-safe-mode'
'--with-mysql=/usr/local/mysql' '--enable-gd-native-ttf'
'--with-xmlrpc'
'--enable-inline-optimization'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
Apache Version Apache/2.0.44 (Unix) mod_perl/1.99_08 Perl/v5.8.0
PHP/4.3.2-RC1
core mod_access mod_auth mod_include mod_log_config mod_env mod_setenvif
prefork http_core mod_mime mod_status mod_negotiation mod_dir mod_userdir
mod_alias mod_so mod_perl sapi_apache2
please, help me, did happen to me when installing the gallery application.
(http://gallery.sourceforge.net)
thank all.