I have a php page :
the have $vars in it to be render into html.
But how can i show the source code the the vars info:
example instead of showing this:
<img src="<? echo $path1;?>" width="150" alt="" />
show this:
<img src="images/something jpg" width="150" alt="" />
in a textarea box
I want to allow users to beable to copy and paste the php render html code.
Now this is how i have it set up
// On the source.php i might have ############
$path1=$_Post['path1'];
<textarea name="source" cols="80" rows="10"><? echo source_code("templates/htm
l2php.php"
);?></text
area>
--------------------------
----------
----------
---
// On the html2php.php page i have:
<img src="<? echo $path1;?>" width="150" alt="" />
--------------------------
----------
--------
But when source.php echoes the source_code() it shows the same:
<img src="<? echo $path1;?>" width="150" alt="" />
how can i get it to show this:
<img src="images/something.jpg"
width="150" alt="" />
Start Free Trial