Author Topic: EZ Echo Problem  (Read 195 times)

0 Members and 1 Guest are viewing this topic.

Offline johne281Topic starter

  • Irregular
  • Posts: 21
    • View Profile
EZ Echo Problem
« on: July 04, 2009, 12:30:07 AM »
hi. I got a book teaching me php and here is my problem. I am entering the following code:

<html>
    <head>
        <title>Bob's Auto Parts - Order Results</title>
    </head>
    <body>
        <h1>Bob's Auto Parts</h1>
        <h2>Order Results</h2>
        <?php
        echo '<p>Order processed.</p>';
        ?>
    </body>
</html>

It is displaying everything fine except in the browser it also shows

'; ?> 

under the words Order processed. What am I doing wrong?

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: EZ Echo Problem
« Reply #1 on: July 04, 2009, 12:33:48 AM »
Can you post the outputed html? (eg, view source). And please, use the [code][/code] tags to post code.

Offline johne281Topic starter

  • Irregular
  • Posts: 21
    • View Profile
Re: EZ Echo Problem
« Reply #2 on: July 04, 2009, 12:37:00 AM »
Code: [Select]
<html>
    <head>
        <title>Bob's Auto Parts - Order Results</title>
    </head>
    <body>
        <h1>Bob's Auto Parts</h1>
        <h2>Order Results</h2>
        <?php
        
echo '<p>Order processed.</p>';
        
?>

    </body>

</html>

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: EZ Echo Problem
« Reply #3 on: July 04, 2009, 12:40:07 AM »
If that is the outputed html then there is something wrong with your server configuration. Are you able to create and view a simple...

Code: [Select]
<?php phpinfo(); ?>
page?