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 trialPaula Gomes
Courses Plus Student 184 PointsAnswer not being accepted
Im on Challenge Task 2 of 2 Now echo Mike's Name To The Screen.
I wrote
<?php
$name = "Mike";
echo $name;
?>
and it keeps telling me that its wrong
<?php
$name = "Mike";
echo $name;
?>
3 Answers
Shawn Flanigan
Courses Plus Student 15,815 PointsPaula,
I just checked the challenge, and your code seems to be working. What error is it giving you?
If you're still receiving this error, maybe try refreshing your browser or trying the quiz in a different browser. Not sure what would be causing this to fail.
aspecialsomebody
1,147 PointsI was having the same issue. I tried over and over. My answer was the same. I removed the whitespace in my answer and it worked. Maybe a glitch?
Imon Dela Rosa
7,383 Pointstry this! in one line: <?php $name = "Mike"; echo $name; ?>
Paula Gomes
Courses Plus Student 184 PointsPaula Gomes
Courses Plus Student 184 PointsHey Shawn, thank you!
Now it went through. Maybe it was a cookie problem.