Results 1 to 4 of 4

Thread: help with displaying data

  1. #1

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    Cool 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>

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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); ?>" />

  3. #3

    Thread Starter
    Frenzied Member joefox's Avatar
    Join Date
    Oct 2004
    Posts
    1,318

    Re: help with displaying data

    Perfect thanks!

  4. #4
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: help with displaying data

    pls mark this thread RESOLVED
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width