Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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