mines almost like twey's part...
Code:
<?php
$img = 'http://www.mysite.com/folder/image.png';
$htm = '<img src="' . $img . '">';
$bbc = '[img]' . $img . '[/img]';
?>
but I would have just done
Code:
<?php
$pic = $_POST['pic'];
function here that I dont wanna write
<form name="changepic" action="" method="post">
<input name="pic" size="50" type="text" id="pic">
<input type="submit" name="Submit" value="Submit">
<input name="htm" size= "50" type="text" id="htm" value="<img src='$pic'>">
<input name="bbc" size= "50" type="text" id="bbc" value="[img]$pic[/img]>
</form>
that probably wouldn't have worked though.
Bookmarks