Hi People,

PHP Newbie here again.  trying to get HTML and PHP to work together really
stumps me at times, I'm trying to output a selection from a form as so:

            <option value="Aruba">Aruba</option>
   <?php
   if (isset($_POST["Country"])) {
            echo "<option
value="$_POST["Country"];"selected>\n"$_POST["Country"];"</option>\n";
   } else {
            echo "<option value="Australia" selected>Australia</option>\n";
   }
   ?>
            <option value="Austria">Austria</option>


This line is whats causing me all the greif:
            echo "<option
value="$_POST["Country"];"selected>\n"$_POST["Country"];"</option>\n";
Parse error: parse error, expecting `','' or `';''

Suggestions or tutorials please ;-)

Col

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to