help with displaying data
I made a simple image loadig script.
After the image is done uploading, i wanted it to kick out a quick html syntax, that the client can copy and post into forums etc. without having to type or figure out the code.
here is my code:
right now i cant figure out how to get the " sign in the syntac, right now i have a ' if i put a " it will make the output look funny.
PHP Code:
<td>HTML:</td> <td><input type="text" name="thetext2" size="80" value="<a href='<? echo $domst .$domain .$drecks; ?>viewer.php?id=<? echo $imgf; ?>'><img src='<? echo $domst.$domain.$drecks.$tpath.$imgf; ?>'></a>"></td> </tr> <tr>
Re: help with displaying data
PHP Code:
<?php
$link = $domst . $domain . $drecks . "viewer.php?id=" . $imgf;
$img = $domst . $domain . $drecks . $tpath . $imgf;
$html = '<a href="' . $link . '"><img src="' . $img . '" /></a>';
?>
<input type="text" name="text2" value="<?php echo htmlentities($html); ?>" />
Re: help with displaying data
Re: help with displaying data
pls mark this thread RESOLVED