dynamic link to a button

Discussion in 'PHP' started by knish, Oct 15, 2007.

  1. #1
    Hi,

    I am using a recordset navigator suite by tom muck. This helps display records in rows and column and multiple pages.

    Is it possible to display buttons which when clicked open an image file from the database. (mysql)

    BRgds,

    kNish
     
    knish, Oct 15, 2007 IP
  2. jonimontana

    jonimontana Well-Known Member

    Messages:
    262
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #2
    echo <<<html
    <form action="images/{$_GET['id']}.gif">
    <input type=submit value=WatchImage>
    html;
    
    Code (markup):
     
    jonimontana, Oct 15, 2007 IP
  3. Invent

    Invent Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't understand why people code like that "<input type=submit ". What's wrong with using " or ' ?
     
    Invent, Oct 15, 2007 IP
  4. Squash

    Squash Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you want have valid HTML so you must code with quotation marks of course.
    
    <input type="submit" name="some_name" value="some_value">
    
    HTML:
     
    Squash, Oct 15, 2007 IP
  5. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #5
    saves a few keystrokes =)
     
    Lordy, Oct 16, 2007 IP