$myVal = "form name="$name"" action="$action" method="$method""
*trying to accomplish putting " qotes around my string values*
Try
$myVal = "form name=\"$name\" action=\"$action\" method=\"$method\"";
or
$myVal = 'form name="' . $name . 'action="' . $action . '" method="' .
$method . '"';
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"
Hello Karl,
This tutorial will be of use :
Using Strings:
--
http://www.zend.com/zend/tut/using-strings.php
In short, three ways come to mind :
$a = "form name=\"$name\"
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
e much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
- Original Message -
From: "Chris Lee" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 19, 2001 9:51 AM
Subject: Re: [PHP] Quotes and Values
alot of people inside o
5 matches
Mail list logo