Unless I'm doing something incorrectly it seems the validation isn't working correctly when you insert php code into the form. I have a simple form in which I pull a list of data from a table in order to populate a dropdown listbox. If I remove the code the validation stuff works, however with the code it doesn't.
Has anyone else experienced this problem? Is there a workaround, or do I have to code my own custom validations? Below is my code snippet from the form I'm building with ChronoEngine.
Has anyone else experienced this problem? Is there a workaround, or do I have to code my own custom validations? Below is my code snippet from the form I'm building with ChronoEngine.
<div>
<table border="0" cellspacing="1" cellpadding="2">
<tr>
<td><label for="Event">Select Event:</label></td>
<td>
<select size="1" paf="" emsg="" class="inputbox" name="Event">
<option value="Select One..." SELECTED></option>
<?
global $database;
$sql = "SELECT title from #__eventlist_dates where published = 1 order by dates;";
$database->setQuery($sql);
$rows = $database->loadObjectList();
foreach($rows as $eventitem) {
echo "<option value=\"" . $eventitem->title . "\">" . $eventitem->title . "</option>\n";
}
?>
</select>
</td>
</tr>
</div>
<br><br>Post edited by: zoom, at: 2007/12/14 18:43