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 Wrapping Up The Project Deploying The Site

Elena Paraschiv
Elena Paraschiv
9,938 Points

When I click on "Continue Shopping " button after I am redirected to Paypal, the page closes suddenly.

header.php

<html>
<head>
    <title><?php echo $pageTitle; ?></title>
    <link rel="stylesheet" href="css/style.css" type="text/css">
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald:400,700" type="text/css">
    <link rel="shortcut icon" href="favicon.ico">
</head>
<body>

    <div class="header">

        <div class="wrapper">

            <h1 class="branding-title"><a href="./">Shirts 4 Mike</a></h1>

            <ul class="nav">
                <li class="shirts <?php if ($section == "shirts") { echo "on"; } ?>"><a href="shirts.php">Shirts</a></li>
                <li class="contact <?php if ($section == "contact") { echo "on"; } ?>"><a href="contact.php">Contact</a></li>
                <li class="cart"><a target="paypal" href="https://www.paypal.com/cgi-bin/webscr?cmd=_cart&amp;business=7C735AWMDKAYJ&amp;display=1">Shopping Cart</a></li>
            </ul>

        </div>

    </div>

    <div id="content">
Elena Paraschiv
Elena Paraschiv
9,938 Points

receipt.php

<?php
$pageTitle = "Thank you for your order, dude!";
$section = "none";
include("inc/header.php");
?>
<div class="section page">
    <div class = "wrapper">
        <h1>Thank you!</h1>
            <p>Thank you for your payment. Your transaction has been completed, and a receipt for your purchase has been emailed to you. You may log into your account at <a href="http://www.paypal.com/ro"> www.paypal.com/ro </a> to view details of this transaction.</p>
            <p>Need another shirt already? Visit the <a href="shirts.php">Shirts Listing</a> page again. </p>
    </div>
</div>

<?php include("inc/footer.php"); ?>