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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.