Thanks John,

"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> PETCOL wrote:
> <snip>
> > 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
> >
>
> 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.com

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

Reply via email to