Help: Getting value from a form button...

Discussion in 'HTML & Website Design' started by Skillman13, Dec 15, 2009.

  1. #1
    Its got abit of php in but the code is...


    <form method="post" action="">
    <input type="image" src="delete.png" name="delete" value="' . <? echo $row['MessageId'] ?> . '" /></form>

    On a loop,

    basically, each button will have a different $row['MessageId']

    For example, button 1 will be a value of 1, button 2 will be a value of 2...

    So how can i retrieve the value?

    -What code can i use to get the value of that button?

    Later on i want to make $messageid = value of the button pressed...

    So how do I get the value of the button pressed? :)

    Thanks alot,

    James
     
    Skillman13, Dec 15, 2009 IP
  2. Skillman13

    Skillman13 Peon

    Messages:
    229
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Working now nvm.
     
    Skillman13, Dec 15, 2009 IP