| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Oct 2004
3 posts
Gave thanks: 0
Thanked 0 times
|
Combining Text Fields
I am creating a mail form in PHP. In the message body, I would like to combine some fields that are separate on the submission form. There may already be a thread relating to this, but I could not think of what search criteria to use to find it. It is pretty simple to do in VB and in SQL, but I am not sure how to do it in PHP. I have listed an example of what I am trying to do below.
Example: Form First Name: John Last Name: Doe Full Name: John Doe In VB or SQL, I would simply use an ampersand (&) to combine the fields. Is there something similar that can be done in PHP. Thanks in advance. Jason Last edited by nvbanker; December 23rd, 2004 at 3:46 PM.. |
|
|
|
|
|
#2 (permalink) |
|
Registered User
Seasoned Poster
Joined in Oct 2004
61 posts
Gave thanks: 1
Thanked 0 times
|
string concatenation
The string concatenation operator in PHP is ".", the dot. For your example:
PHP Code:
__________________
pass17 dreamhead.com |
|
|
|