Wednesday, 1 June 2016

Outputting HTML codes in PHP

This a process of printing out html codes in php.

In trying to write an echo statement to the page that puts a textarea on the page with a red color for the text.
Normal HTML code would like this and my text would be in red
<textarea style="color:#FF0000;" name="message">Please Enter</textarea>
Now I have tried this and I can't get it to work (it is part of a bigger script I have just trimmed it down for this example.)
<?php
{echo '<textarea style=\\"color:#FF0000;\\" name=\\"message\\">Please Enter</textarea>';}
?>

in other to understand this concept very well users will need to to download this video to have a good view of what the process are. do not forget to subscribe to our youtube channel for more updates from ogbugbu web development service click here to go to official website.


0 comments:

Post a Comment