|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33706 $_POST bug
Submitted: 2005-07-14 21:03 UTC Modified: 2005-07-14 21:23 UTC
From: deucalion at lycos dot co dot uk Assigned:
Status: Not a bug Package: SOAP related
PHP Version: 5.0.4 OS: Windows2000,XP
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: deucalion at lycos dot co dot uk
New email:
PHP Version: OS:


 [2005-07-14 21:03 UTC] deucalion at lycos dot co dot uk
$_post does not working in the SOAPclient. 

Reproduce code:
if (!$_POST['zipcode'])



<h2>U.S ZipCodesTemperatureService</h2>

<form action="<?=$_SERVER['PHP_SELF']?>" method="post">

Type search term: <input type="text" name="zipcode">

<input type="submit" name="submit" value="Invoke">






$client = new soapclient("",array (

"trace" => 1,

"exceptions" => 0)); 

$params= array ( "zipcode" => $_POST['zipcode'] );


print "<pre>\n"; 

print "Request :\n".htmlspecialchars($client->__getLastRequest()) ."\n";

print "Response:\n".htmlspecialchars($client->__getLastResponse())."\n";

print "</pre>";





Expected result:
Request :
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:ns1="urn:xmethods-Temperature-Demo" xmlns:xsd="" xmlns:xsi="" xmlns:SOAP-ENC="" SOAP-ENV:encodingStyle=""><SOAP-ENV:Body><ns1:getTemp><zipcode xsi:type="xsd:string">zipcode</zipcode></ns1:getTemp></SOAP-ENV:Body></SOAP-ENV:Envelope>

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsi="" xmlns:xsd="">
<ns1:getTempResponse xmlns:ns1="urn:xmethods-Temperature-Demo" SOAP-ENV:encodingStyle="">
<return xsi:type="xsd:float">52.0</return>


Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-14 21:23 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 20:01:30 2024 UTC