PHP GET error $ : <p>I want to collect information from <a href="http://mywebsite1.com/register.php?log=firstname=Yoga&amp;lastname=Galih" rel="nofollow">http://mywebsite1.com/register.php?log=firstname=Yoga&amp;lastname=Galih</a></p>

<p>but i want to get that info to my 2nd website using PHP $_GET and save it to <code>reg.log</code></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["address"]) &amp;&amp; isset($_GET["city"]) &amp;&amp; isset($_GET["state"]) &amp;&amp; isset($_GET["zip"]) &amp;&amp; isset($_GET["country"]) &amp;&amp; isset($_GET["phone"]) $$ isset($_GET["gender"]) &amp;&amp; isset($_GET["haircolor"]) &amp;&amp; isset($_GET["eyecolor"]) &amp;&amp; isset($_GET["high"]) isset($_GET["weight"])) {
    $firstname = $_GET["fname"];
    $lastname = $_GET["lname"];
    $address = $_GET["address"];
    $city = $_GET["city"];
    $state = $_GET["state"];
    $zip = $_GET["zip"];
    $country = $_GET["country"];
    $gender = $_GET["gender"];
    $haircolor = $_GET["hcolor"];
    $eyecolor = $_GET["ecolor"];
    $high = $_GET["high"];
    $weight = $_GET["weight"];
    $phone = $_GET["phone"];
    echo $firstname .PHP_EOL. $lastname .PHP_EOL. $address .PHP_EOL. $city .PHP_EOL. $state .PHP_EOL. $zip .PHP_EOL. $country .PHP_EOL. $phone .PHP_EOL. $hcolor .PHP_EOL. $ecolor .PHP_EOL. $high .PHP_EOL. weigh .PHP_EOL. gender;
    $fh = fopen($txt, 'a'); 
fwrite($fh,$txt); // Write information to the file
fclose($fh); // Close the fil
}
?&gt;
</code></pre>

<p>but I get error [21-Mar-2016 15:17:09 America/New_York] PHP Parse error: syntax error, unexpected '$' in /home/my2ndweb/public_html/includes/register.php on line 3</p>

<p>I need help</p>

<p>Thanks</p>
