Note that there are some explanatory texts on larger screens.

plurals
  1. POwhy are form variables not available in this php code?
    text
    copied!<p>I have a form on my PHP page which performs some ajax validation (that's working). Here's a snippet (the live form has more fields than this)</p> <pre><code> &lt;form name="form" onSubmit="return validate_form();" action="submitform.php" method="post"&gt; &lt;table border="0" cellpadding="5" bgcolor="#000000"&gt; &lt;tr&gt; &lt;td width="175"&gt; &lt;div align="right"&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif" size="2"&gt;&lt;b&gt;Requested Vendor TAG:&lt;/b&gt; &lt;/font&gt;&lt;/div&gt; &lt;/td&gt; &lt;td&gt; &lt;input type="text" name="VendorTAG" onblur="checktag();" maxlength="8"&gt; &lt;div id="vendtag"&gt;&lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width="175"&gt; &lt;div align="right"&gt;&lt;font face="Verdana, Arial, Helvetica, sans-serif" size="2"&gt;&lt;b&gt;Contact Name: &lt;/b&gt; &lt;/font&gt;&lt;/div&gt; &lt;/td&gt; &lt;td&gt; &lt;input type="text" name="ContactName" maxlength="50"&gt; &lt;/td&gt; &lt;/tr&gt; </code></pre> <p> </p> <p>When I click the submit button, it loads this code:</p> <pre><code>&lt;php ? if(trim($VendorTAG) == '') { die('Vendor TAG cannot be blank'); } else if(trim($ContactName) == '') { die('Contact Name cannot be blank'); } ?&gt; </code></pre> <p>(again, there's more of the same, but this illustrates the point)</p> <p>This all worked perfectly well until the last update from my hoster sometime over christmas, when the form stopped working - but I'm having real difficulty in finding out why..</p> <p>The server is now running PHP 5.2.11 - am I doing something fundamentally wrong/stupid here?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload