![]() |
Some sort of php tag, that allows FULL html?
As you know in php, you can't use double quotes without putting for ex:
Code:
<input type=\"text\" name=\"head\"> With the double quotes and all? like fullhtml("html here"); *note i made up that above :p |
Also
what is htmlentities() ? |
Quote:
|
Arunan, if you use ' ' around the String then you can use " in it :)
|
Quote:
|
Well I want to use normal html, no editing, with the double quotes and all, basically its like me writing normal html in a html page, but I want to incorporate it in php, what function would allow me to put html into it without having to format the html to fit php's needs.
|
You are probably aware of this, but just drop out of PHP code completely..
PHP Code:
Note to use this echo() shortcut you must have the short_open_tag configuration directive enabled. I do not know of any specific function that would allow raw html code to be echo'd back to the browser. This is just the way this type of embedded code forces us to work i think! |
Untested, but try using:
PHP Code:
Also untested, but there are two PHP directives in your php.ini file known as magic_quotes_gpc and magic_quotes_runtime, that basically will automatically add and strip slashes for you. |
Parse error: parse error, unexpected T_STRING in /home/virtual/site19/fst/var/www/html/vbnews.php on line 2
Thats the error I get, Velocd :( |
PHP Code:
|
Why does stuff like
PHP Code:
|
just try this:
PHP Code:
|
Gives me Parse error: parse error, unexpected $ in /home/virtual/site19/fst/var/www/html/vbnews.php on line 5
|
Wait it works :)
|
well, as i said :)
i think in vb3 code all strings are with ' '. in vb2 there are some combinations.. |
Ah...very cool :)
Thanks again, yet another thing I have learned from you :-p |
PHP Code:
PHP Code:
|
Can't you also do:
<?php $somevar="http://www.apple.com/"; echo <<< DONE <a href="$somevar">asdf</a> DONE ?> |
Yes, but you will retain a significant performance hit through larger scripts if you do.
Don't forget the semi-colon ;) |
All times are GMT. The time now is 04:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|