RE: [PHP] combining text with $_POST

2003-04-05 Thread John W. Holmes
> 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

Re: [PHP] combining text with $_POST

2003-04-05 Thread Sebastian
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

Re: [PHP] combining text with $_POST

2003-04-05 Thread David McGlone
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

RE: [PHP] combining text with $_POST

2003-04-05 Thread Don Read
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] -

RE: [PHP] combining text with $_POST

2003-04-05 Thread John W. Holmes
> 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