php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13959 variable passed by wml page with post don't work
Submitted: 2001-11-06 14:33 UTC Modified: 2001-11-06 16:23 UTC
From: vmarco at hotmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.0CVS-2001-11-06 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vmarco at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-11-06 14:33 UTC] vmarco at hotmail dot com
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!!!










Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-06 16:23 UTC] jeroen@php.net
Please ask support questions on www.php.net/support.php. This is a bug in your script.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 11:00:02 2026 UTC