Re: Quotes and Values
| From: | jeremy brand | Date: | Thu, 18 Jan 2001 22:45:58 +0000 |
| Subject: | Re: Quotes and Values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35482@lists.php.net to get a copy of this message | ||
Then you need to escape your double quotes:
$myVal = "<form name=\"$name\" action=\"$action\"
method=\"$method\">";
or use the single quote equivilant:
$myVal = '<form name="'.$name.'"
action="'.$action.'" method="'.$method.'">';
or (PHP4 only)
$myVal = <<<EOT
<form name="$name" action="$action" method="$method">
EOT;
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://www.JEEP-FOR-SALE.com/ -- I need a buyer
Get your own Free, Private email at http://www.smackdown.com/
On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote:
> Date: Thu, 18 Jan 2001 15:44:06 -0700
> From: Karl J. Stubsjoen <karlflips@kstub.com>
> To: PHP Mailing List <php-general@lists.php.net>
> Subject: [PHP] Quotes and Values
>
> 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
>
>