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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Majid Mokhtari](https://uploads.teamtreehouse.com/production/profile-photos/711202/micro_MajidCover.jpg)
Majid Mokhtari
10,506 PointsProblem with showing the thank you message
I included this code:
<?php
header("Location: contact.php?status=thanks");
exit;
?>
on local server it sends the status=thanks to browser and i see the thank you message, but in real server it does not send it to the browser. In other words I don't see the thank you message:
<?php if(isset($_GET["status"]) AND $_GET["status"] == "thanks"){?>
<h4>Thanks for sending the message. I will contact you soon!</h4>
2 Answers
![Chris Southam](https://secure.gravatar.com/avatar/e024ec709e68485bc73412104cb7e940?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Chris Southam
1,823 PointsThe problem will be a difference between your local and real server. Do you know what the two are running PHP wise?
Try putting var_dump($_GET);
at the top of your file (after <?php) and see what it outputs.
![Majid Mokhtari](https://uploads.teamtreehouse.com/production/profile-photos/711202/micro_MajidCover.jpg)
Majid Mokhtari
10,506 PointsAndrew what do you mean by formatting issue? Chris I did that they are showing same output
Andrew Shook
31,709 PointsAndrew Shook
31,709 Pointsfixed formatting issue so code will show up in code blocks.