Display php using javascript
<pre><code>    &lt;p&gt;Todays Date: &lt;? echo $date; ?&gt;&lt;/p&gt;
    &lt;p&gt;Are you applying for a day, evening, or weekend class? 
    &lt;select name='date' id='wclass'&gt;
 &lt;option value ='day'&gt; Day&lt;/option&gt;
 &lt;option value ='evening'&gt;Evening&lt;/option&gt;
  &lt;option value ='weekend'&gt;Weekend&lt;/option&gt;
  &lt;/select&gt;


Program Start Date:
&lt;div id='dates'&gt;&lt;/div&gt;
&lt;script language="javascript"&gt;
$(document).ready(function() {
{ setInterval(function () {

if ($("#wclass").val()=='day')

  {   $('#dates').html("&lt;? echo &lt;select name='date'&gt;
&lt;option value ='date1'&gt; $start1 &lt;/option&gt;
 &lt;option value ='date2'&gt;$start2&lt;/option&gt;
 &lt;option value ='date3'&gt;$start3&lt;/option&gt;
 &lt;option value ='date4'&gt;$start4&lt;/option&gt;
  &lt;option value ='date5'&gt;$start5&lt;/option&gt;
   &lt;option value ='date6'&gt;$start6&lt;/option&gt;
   &lt;option value ='date7'&gt;$start7&lt;/option&gt;
  &lt;/select&gt; }?&gt;");} 
  }, 1000); 
});
</code></pre>

<p>   </p>

<p>My issue is that i am not sure how to display php using javascript. The variables are all correct, the issue is to get the php to display as html would in my .html. All i want to do is display the php variables which i fetched in the beginning. So the variables have been defined in php now i want to turn them into a html list based on my javascript. You may notice that the echo is missing quotes, thats because i dont know how to put quotes, i cant use <code>"</code> or <code>'</code> because they both interup quotes that are already there. </p>
