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: {$_POST['name']}";
> echo 'Name: ' . $_POST['name'];
> echo "Name: $_POST[name]";
> echo 'Name: ' . $_POST["name"];
> etc...

Thank you all for the quick response. I was using this method and now I 
finally see my error which was I forgot to put the " . " before " $_POST"

As you all can see, im relativly new to PHP and I think I'll thank you all for 
putting up with me now instead of later.. : - )
-- 
David M.
Edification Web Solutions
http://www.edificationweb.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to