Bug #13959: variable passed by wml page with post don't work

From: Date: Tue, 06 Nov 2001 19:33:53 +0000
Subject: Bug #13959: variable passed by wml page with post don't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-69714@lists.php.net to get a copy of this message
From:             vmarco@hotmail.com
Operating system: Linux
PHP version:      4.0CVS-2001-11-06
PHP Bug Type:     Unknown/Other Function
Bug description:  variable passed by wml page with post don't work

i have a wml page like this

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.3//EN"
            "http://www.openwave.com/dtd/wml13.dtd"
>

<wml>
<head>
<meta http-equiv="Cache-Control" content="max-age=0"
forua="true"/>
</head>
<card title="Specials">
<p>
text
<input name="var1" emptyok="false" /><br/>
</p>
<do type="accept" label="Continua">
<go method="post" href="http://www.ciao.it/wap/a.php">
    <postfield name="destname" value="$var1"/>
</go>
</do>
</card>
</wml>

***************
in http://www.ciao.it/wap/a.php

if I write   

echo $destname;

I get value that i have inserted in wml page...

instead if i write

$fd=fopen("file.txt","w");
fputc($fd,$destname);

in file.txt i get the string $var1

and if in php page i write
mysql_query("insert into table (field) values '" . $destname . "');"

in db i get the string $var1 instead of value that echo $var1 print!!!










-- 
Edit bug report at: http://bugs.php.net/?id=13959&edit=1



Thread (2 messages)

« previous php.dev (#69714) next »