Dear Daniel: Thank you so much for your great advice and feedback about keeping my code clean... I love that. I have spent the entire day cleaning up the data and it is now ready so this will allow me to move on to the sales part. I was feeling like giving up only a day ago.
Here is my version of your code. Have to admit I don't understand agentv and agentn and I screwed it up (sorry):
Code:
<p><label>* Agent:</label>
<select name="agent">
<?php
$agent = array('DD'=>'Debbie','JV'=>'Joanne','HS'=>'House');
foreach ($agent as $agentv=>$agentn) {
$selected = (isset($_POST['agent']) && $_POST['agent'] == $agentv)?' selected''';
echo "<option value=\"$agentv\" $selected>$agentn</option>";
} ?>
</select></p>
Here is the error message:
Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in .../client-history-add2.php on line 55
Garden time now
Bookmarks