Jump to content

How to print the html code?


Rommeo

Recommended Posts

hi

 

After uploading the picture, for to use it in any page i wanna print the codes. But curious how can i print the codes.I m sure its very easy but I have never done that before. When i try to print it , i see with at the source code can not copy from html page :(

 

lets say the code i wanna use is

<img src="$name.jpg" align="left">

i wanna see it like

<img src="pic.jpg" align="left">

Then i wanna copy that from the html.file and use it by echo or print function if it's possible ?

 

Thanks in Advance.

 

Link to comment
https://forums.phpfreaks.com/topic/117770-how-to-print-the-html-code/
Share on other sites

should all you do is .

for width

<img src="" width="<?php echo $width; ?>">

Blade thank you so much and i got you.

 

But my question is ;

is it possible with echo ? i also heard that 's possible with print function. Cause I ll print more codes. So I wanna learn how people are doing it. Again thanks for your replies.I ll be glad if you can tell me by using echo or print function.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.