> you also really don't need single quotes in the $_POST...
(if the variable is within a string delimited by _double_ quotes)
> echo "Name: $_POST[name]";
>
> .. should work.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch
you also really don't need single quotes in the $_POST...
echo "Name: $_POST[name]";
.. should work.
cheers,
- Sebastian
- Original Message -
From: "Don Read" <[EMAIL PROTECTED]>
|
| On 06-Apr-2003 David McGlone wrote:
| > Hi all, how can I combine this line to use just 1 echo stat
On Saturday 05 April 2003 08:00 pm, John W. Holmes wrote:
> > Hi all, how can I combine this line to use just 1 echo statement?
> >
> > echo "Name: "; echo $_POST['name']
>
> The period is used for string concatenation:
>
> echo "Name: " . $_POST['name'];
>
> Many ways you can do it:
>
> echo "Name
On 06-Apr-2003 David McGlone wrote:
> Hi all, how can I combine this line to use just 1 echo statement?
>
> echo "Name: "; echo $_POST['name']
>
echo 'Name: ', $_POST['name'];
-or-
echo 'Name: ' .$_POST['name'];
Regards,
--
Don Read [EMAIL PROTECTED]
-
> Hi all, how can I combine this line to use just 1 echo statement?
>
> echo "Name: "; echo $_POST['name']
The period is used for string concatenation:
echo "Name: " . $_POST['name'];
Many ways you can do it:
echo "Name: {$_POST['name']}";
echo 'Name: ' . $_POST['name'];
echo "Name: $_POST[nam
5 matches
Mail list logo