Re: Syntax
| From: | John Nichel | Date: | Sat, 14 Feb 2004 07:54:38 +0000 |
| Subject: | Re: Syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177690@lists.php.net to get a copy of this message | ||
PETCOL wrote:
<snip>
This line is whats causing me all the greif:You're wrapping the whole string in double quotes ("), not escaping the double quotes in your form element, and using double quotes around the array keys. Don't know why you have the semi-colons in the middle of the string, or the new line, but try this... echo ( "<option value=\"" . $_POST['Country'] . "\" selected>" . $_POST['Country'] . "</option>\n" ); Read here about escaping characters, and about concatenating. http://us2.php.net/manual/en/function.echo.php http://us2.php.net/manual/en/language.operators.string.php -- By-Tor.com It's all about the Rush http://www.by-tor.comecho "<optionvalue="$_POST["Country"];"selected>\n"$_POST["Country"];"</option>\n"; Parse error: parse error, expecting','' or';'' Suggestions or tutorials please ;-) Col