Forum Moderators: coopster
<select name="section" id="section">
<option value="0">Select Section</option>
<?PHP
// Generate a drop-down list of sections.
$result = $connector->query('SELECT ID,name FROM cmssections ORDER BY name');
// Get an array containing the results.
// Loop for each item in that array
while ($row = $connector->fetchArray($result)){
echo '<option value="'. $row['ID'].'ttt11ttt'.$row['name'].'">'.$row['name'].'</option>';
}
?>
</select>
In HTML:
<textarea name="content" cols="115" rows="35" class="box" id="content">Value Goes Here</textarea>
To echo the PHP value:
<textarea name="content" cols="115" rows="35" class="box" id="content"><?php echo $_POST['content'] ?></textarea>
<textarea name="content" cols="115" rows="35" class="box" id="content"><?php echo $_POST['content'] ?></textarea>
if($successfulEntry=="Yes) {
unset($_POST);
}
// RE: Added ; - That's what happens when I switch back and forth between styles... Shorthand <?= ?> does not require one, but <?php echo ?> does. I'm not always very good at double checking here. ;)