note 66567 deleted from language.variables.external by danbrown
| From: | danbrown@php.net | Date: | Wed, 09 Mar 2011 14:35:46 +0000 |
| Subject: | note 66567 deleted from language.variables.external by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-177696@lists.php.net to get a copy of this message | ||
Note Submitter: Hyan Christian
----
Just to complete Murat TASARSU's post in this page.
I hope this will help anyone who is going to add it with fsockopen
<html>
<body>
<form method="post" action="">
<input name="fruit" value="banana" /><br />
<input name="color" value="yellow" /><br />
<input type="submit" value="Click It">
</form>
<br />
<b>POST</b> :
<?php
$be_var = $_POST;
foreach ( $be_var as $key => $value ) {
$be_var = $be_var."&".$key."=".$value;
}
echo str_replace( "Array&", "", $be_var ); // fruit=banana&color=yellow
?>
</body>
</html>