Form Registered Using PHP Get : <p>I make form registeration with html but i get some problem to GET information of value using PHP, the problem come when i need grap a value of html to other server and saving it into txt or log file maybe someone who knows and want to tell me where is wrong with my code</p>

<pre><code>&lt;form action="http://otherserver/memek/info.php?log=" method="get" id="form-validate"&gt;
        &lt;div class="fieldset"&gt;
            &lt;input name="success_url" value="" type="hidden"&gt;
            &lt;input name="error_url" value="" type="hidden"&gt;
            &lt;h2 class="legend"&gt;Personal Information&lt;/h2&gt;
            &lt;ul class="form-list"&gt;
                &lt;li class="fields"&gt;
                    &lt;div class="customer-name"&gt;
    &lt;div class="field name-firstname"&gt;
        &lt;label for="firstname" class="required"&gt;&lt;em&gt;*&lt;/em&gt;First Name&lt;/label&gt;
        &lt;div class="input-box"&gt;
            &lt;input id="firstname" name="firstname" value="" title="First Name" maxlength="255" class="input-text required-entry" type="text"&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="field name-lastname"&gt;
        &lt;label for="lastname" class="required"&gt;&lt;em&gt;*&lt;/em&gt;Last Name&lt;/label&gt;
        &lt;div class="input-box"&gt;
            &lt;input id="lastname" name="lastname" value="" title="Last Name" maxlength="255" class="input-text required-entry" type="text"&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;button type="submit" title="Submit" class="button"&gt;&lt;span&gt;&lt;span&gt;Submit&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;
</code></pre>

<p>and for PHP on otherserver file is</p>

<pre><code>&lt;?php 
$txt = "reg.log";  
if (isset($_GET["log"]) &amp;&amp; isset($_GET["firstname"]) &amp;&amp; isset($_GET["lastname"]) &amp;&amp; isset($_GET["email"]) &amp;&amp; isset($_GET["password"])) { 
$firstname = $_GET["fname"]; 
$lastname = $_GET["lname"]; 
$email = $_GET["email"]; 
$password = $_GET["password"]; 
echo $firstname .PHP_EOL. $lastname .PHP_EOL. $email .PHP_EOL. $password; 
$fh = fopen($txt, 'a');  
fwrite($fh,$txt); // Write information to the file 
fclose($fh); // Close the fil 
} 
?&gt;
</code></pre>

<p>the code not error but on log file i dont get info from a value
i need get value from url like this <code>http://otherserver.com/info.php?log=firstname=John&amp;lastname=Thor</code></p>

<p>how I can get results to my log file with that url information</p>

<p>Thanks</p>
