why are form variables not available in this php code?

Shapaklekas

New Member
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)\[code\] <form name="form" onSubmit="return validate_form();" action="submitform.php" method="post"> <table border="0" cellpadding="5" bgcolor="#000000"> <tr> <td width="175"> <div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Requested Vendor TAG:</b> </font></div> </td> <td> <input type="text" name="VendorTAG" onblur="checktag();" maxlength="8"> <div id="vendtag"></div> </td> </tr> <tr> <td width="175"> <div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Contact Name: </b> </font></div> </td> <td> <input type="text" name="ContactName" maxlength="50"> </td> </tr>\[/code\]When I click the submit button, it loads this code:\[code\]<php ?if(trim($VendorTAG) == '') { die('Vendor TAG cannot be blank'); } else if(trim($ContactName) == '') { die('Contact Name cannot be blank'); }?>\[/code\](again, there's more of the same, but this illustrates the point)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..The server is now running PHP 5.2.11 - am I doing something fundamentally wrong/stupid here?
 
Back
Top