Jump to content

Browser is reading outside the php tags


Recommended Posts

Hi, I'm new to php / html, and came here to find help.  I've programmed in C and VB / VBA, but want to build a web application, so am reading a couple of php books and giving myself a crash course.  But I crashed before I got going...

 

I'm using WAMP to test the tutorials, and am just setting up an order processing form.  In the output page I'm failing in what should be the simplest line of code in the world:

 

<?php echo '<p>Order Processed</p>'; ?>

But the browser literally echoes everything from the first <p> tag to the end, outputting:

 

Order Processed '; ?>

 

Is there anything obvious I'm missing or typing incorrectly?  (Gets same results using print instead of echo.)

Cheers!

Link to comment
https://forums.phpfreaks.com/topic/219676-browser-is-reading-outside-the-php-tags/
Share on other sites

Well hot damn, no I wasn't.

But when I do, it works fine.  I was accessing it thru the file --> open command in Firefox, but the http://method is great - thank you very much.

Mind if I ask why there is a difference in how they respond?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.