Jump to content

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?

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.