Re: Quotes and Values
| From: | Josh G | Date: | Thu, 18 Jan 2001 22:58:29 +0000 |
| Subject: | Re: Quotes and Values | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35492@lists.php.net to get a copy of this message | ||
True, but iirc it's not xml compliant, and might not be a good habit,
and it then leaves you without the option to use it in JS calls, like:
echo "<a href=\"#\"
onclick=\"do_something('withthis')\">"
Gfunk - http://www.gfunk007.com/
I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
----- Original Message -----
From: "Chris Lee" <lee@mediawaveonline.com>
To: <php-general@lists.php.net>
Sent: Friday, January 19, 2001 9:51 AM
Subject: Re: [PHP] Quotes and Values
> alot of people inside on escaping your double quotes, I dont, I use single
> quotes, its nicer to read.
>
> echo "<form method='post' name='form_1'
> action='somepage.php'>\n";
>
> echo "<form method=\"post\" name=\"form_1\"
> action=\"somepage.php\">\n";
>
> I find the prior easier to read. they both work 100% no quibles.
>
> Chris Lee
> Mediawaveonline.com
>
>
>
> ""Karl J. Stubsjoen"" <karlflips@kstub.com> wrote in message
> news:017b01c081a0$2ad77e50$0afc020a@kstubsjoen...
> > Hello,
> >
> > I am trying to do this:
> >
> > $myVal = "<form name="$name"" action="$action"
> > method="$method"">
> > *trying to accomplish putting " qotes around my string values*
> >
> > Thanks!
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>