Robert is right, I used the ASP style tags (which are allowable depending on
the setup in your php.ini file). For "pure" PHP, these should be question
marks:

<p>This is my data variable value: <?= $myVar ?></p>

My apologies.

Larry: these tags allow you to embed a variables contents or the return
value of a procedure directly into your HTML. These are PHP tags, not HTML
tags. When the pre-processor parses the PHP, encountering one of these tags
engages the processor (as do the <?php opening tags) and the closing ?>
disengages the processor. Anything outside those tags is rendered as is as
HTML.

You can convert any HTML file to a PHP file simply by changing the extension
to ".php". If the server has PHP installed properly, then the page will be
rendered just as before.

Hope this clears it up.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.