The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Simple php programming question
as a PHP newb I have a simple php question.
When you are inserting html code into your PHP document what is the best way to do it? SHould you 1) leave php whenever you can? Like Code:
>? HTML CODE <? Code:
print " HTML code with a value=\"value\""; Is it to escape the php? Or to backslash the quote tags EVERY TIME or is there an easier solution? ************************************************** ************************ UPDATE: I think I have found the answer for this. use single quotes on print statements... if this is not the best way let me know. Thanks |
#2
|
|||
|
|||
I use
PHP Code:
|
#3
|
|||
|
|||
When I want to output a large amount of html, then I tend to close and re-open the php tag. For small amounts, I use single quoted statements - but it's whatever suits you.
|
#4
|
|||
|
|||
Yeah, you can do a largest code and put a <?php $something ?>
Like: PHP Code:
PHP Code:
PHP Code:
Other way, you cant use INCLUDE TAG: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|