johne281 Posted July 4, 2009 Share Posted July 4, 2009 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? Link to comment https://forums.phpfreaks.com/topic/164733-ez-echo-problem/ Share on other sites More sharing options...
trq Posted July 4, 2009 Share Posted July 4, 2009 Can you post the outputed html? (eg, view source). And please, use the tags to post code. Link to comment https://forums.phpfreaks.com/topic/164733-ez-echo-problem/#findComment-868695 Share on other sites More sharing options...
johne281 Posted July 4, 2009 Author Share Posted July 4, 2009 <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> Link to comment https://forums.phpfreaks.com/topic/164733-ez-echo-problem/#findComment-868698 Share on other sites More sharing options...
trq Posted July 4, 2009 Share Posted July 4, 2009 If that is the outputed html then there is something wrong with your server configuration. Are you able to create and view a simple... <?php phpinfo(); ?> page? Link to comment https://forums.phpfreaks.com/topic/164733-ez-echo-problem/#findComment-868699 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.