|
-
Feb 1st, 2007, 04:18 PM
#1
Thread Starter
Frenzied Member
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>
-
Feb 1st, 2007, 06:13 PM
#2
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); ?>" />
-
Feb 2nd, 2007, 11:38 AM
#3
Thread Starter
Frenzied Member
Re: help with displaying data
-
Feb 2nd, 2007, 08:23 PM
#4
Fanatic Member
Re: help with displaying data
pls mark this thread RESOLVED
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|