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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 17:01:31 2024 UTC