Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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