Old PHP code reason for not working?
<p>Thanks everyone who answered my recent related question <a href="http://stackoverflow.com/questions/8513420/php-variables-passed-to-new-page-not-showing-up">here</a>, all the answers helped and it has given me progress, and a bit of education.  I do not know how long ago the original author wrote the code so there might be archaic ways in amongst there.</p>

<p>Carrying on further would similar principles apply for later in the code where the form captures some user input and assigns a variable name such as $dateofbirth below and is used later in an email to the owner?  In other words at the moment the date of birth and other fields are not being included in the email</p>

<pre><code>&lt;p&gt;Date of Birth &lt;i&gt;(dd/mm/yyyy)&lt;/i&gt;&lt;br /&gt;&lt;input name="dateofbirth" value="&lt;? echo $dateofbirth;?&gt;" type="text" style="width: 350px;" /&gt;&lt;/p&gt;


&lt;p&gt;&lt;br /&gt;&lt;input type="hidden" name="service" value="&lt;?
echo $service;
?&gt;" /&gt;

&lt;input type="hidden" name="p" value="&lt;?
echo $p;
?&gt;" /&gt;
&lt;input type="submit" value="Order now" /&gt;&lt;/p&gt;
&lt;/form&gt;
</code></pre>

<p>The sending email code is here</p>

<pre><code>$emailtext = "From: " . $clientname . "\r\n";
$emailtext .= "Service ordered: " . $service . "\r\n";
$emailtext .= "Price to pay: £" . $p . "\r\n";
$emailtext .= "Date of birth: " . $dateofbirth . "\r\n";
$emailtext .= "Questions:\r\n\r\n" . $questions . "\r\n\r\n";
$emailtext .= "Comments:\r\n\r\n" . $comments . "\r\n\r\n";
$emailtext .= $email;
</code></pre>

<p>In summary, is the code above old, archaic, unsupported and in need of modernising to make it work?</p>

<p>Thanks.</p>
