title: PHP Form coding with no response
body: <p>I have used php code inside my page but its not working in localhost showing the undefined variable in the textboxes and selectboxes which I have given like this:</p>
  
  <pre><code>$propertyid = ereg_replace("[^A-Za-z0-9-]", "", $_POST['propertyid']); 
  $propertyname = ereg_replace("[^A-Za-z0-9]", "", $_POST['propertyname']); 
  $propertytype = ereg_replace("[^A-Z a-z0-9]", "", $_POST['propertytype']); 
  $propertydealtype = ereg_replace("[^A-Z a-z0-9]", "", $_POST['propertydealtype']);
  $propertystreet = ereg_replace("[^A-Z a-z0-9]", "", $_POST['propertystreet']);
  
  
  
  
  &lt;td width="249" align="left" valign="middle"&gt;PropertyID:&lt;/td&gt;
    &lt;td width="739"&gt;&lt;input name="propertyid" type="text" value="&lt;?php echo "$propertyid"; ?&gt;" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
      &lt;tr&gt;
    &lt;td width="249" align="left" valign="middle"&gt;PropertyName:&lt;/td&gt;
    &lt;td width="739"&gt;&lt;input name="propertyname" type="text" value="&lt;?php echo "$propertyname"; ?&gt;" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="left" valign="middle"&gt;Property Type:&lt;/td&gt;
    &lt;td&gt;&lt;select name="propertytype"&gt;
    &lt;option value="&lt;?php echo "$propertytype"; ?&gt;"&gt;&lt;?php echo "$propertytype"; ?&gt;&lt;/option&gt;
    &lt;option value="Appartment/Fla"&gt;Appartment/Flat&lt;/option&gt;
    &lt;option value="Farm House"&gt;Farm House&lt;/option&gt;
    &lt;option value="Guest House"&gt;Guest House&lt;/option&gt;
    &lt;option value="Lord"&gt;Lord&lt;/option&gt;
    &lt;option value="Hostel"&gt;Hostel&lt;/option&gt;
    &lt;/select&gt;&lt;/td&gt;
  &lt;/tr&gt;
      &lt;tr&gt;
    &lt;td align="left" valign="middle"&gt;Deal Type:&lt;/td&gt;
    &lt;td&gt;&lt;select name="propertydealtype"&gt;
      &lt;option value="&lt;?php echo "$propertydealtype"; ?&gt;"&gt;&lt;?php echo "$propertydealtype"; ?&gt;&lt;/option&gt;
      &lt;option value="For Sale"&gt;For Sale&lt;/option&gt;
      &lt;option value="For Rent"&gt;For Rent&lt;/option&gt;
      &lt;option value="For Lease"&gt;For Lease&lt;/option&gt;
      &lt;option value="Ejara"&gt;Ejara&lt;/option&gt;
      &lt;option value="Sar Qulfi"&gt;Sar Qulfi&lt;/option&gt;
    &lt;/select&gt;&lt;/td&gt;
  
  &lt;tr&gt;
    &lt;td align="left" valign="middle"&gt;Property Streeet:&lt;/td&gt;
    &lt;td&gt;&lt;input name="propertystreet" type="text" value="&lt;?php echo "$propertystreet"; ?&gt;" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>inside of each box whenever i am executing in localhost receiving errors inside boxes.</p>