Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Build a Simple PHP Application Adding a Contact Form Concatentation

mo aly
mo aly
7,003 Points

hellp

details in question

Ken Alger
Ken Alger
Treehouse Teacher

Mo;

Need more information, code you are using, etc. to be able to assist.

Ken

3 Answers

mo aly
mo aly
7,003 Points

sorry . concatenation quizz part 2 asks me to write full name using three vairables firstname last name and middlename

i create variable $fullname=$firstname.$middlename.$lastname; and it doesn't work

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Mo;

Task 2 of this challenge asks:

Create a variable called fullName and assign it a value equal to the concatenation of the firstName variable, a space, the middleName variable, a space, and the lastName variable.

You simply forgot to include the spaces in the $fullName variable. Your code would make $fullName be equal to

MikeTheFrog

not

Mike The Frog

as the challenge is looking for.

Post back if you need anything else.

Ken

mo aly
mo aly
7,003 Points

thanks for the help. but the problem was how to create the space. i found out it was the talking marks. Now that was the most unclear quizz ive had so far. because he doesn't do that in the previous video. anyways thanks! i got through it

Ken Alger
Ken Alger
Treehouse Teacher

Mo;

I realized the problem was "how to create the space" and was trying to provide a bit of insight as to what the challenge was wanting to allow you to figure it out on your own, which it sounds like you did. Great Job!

Sometimes in the forum folks will explicitly spell out how to pass a challenge, and other times general hints are given. If hints are given, such as in this case, the forum is obviously still available if the given hints aren't enough to get you through a given challenge task.

Very pleased you were able to get through this one. Every little bit of understanding is a big step overall.

Happy coding,

Ken