User Input help needed

Discussion in 'PHP' started by jumpenjuhosaphat, Aug 17, 2006.

  1. #1
    I want to know how to get input from a user. I am retrieving information from a DB, and depending on the data, I need to do 1 of 2 things, either approve the data, or move it to another table and delete it. Approving the data is as simple as changing a field in the table from a 0 to a 1. I need 2 buttons, but don't know how to make a button, or get any input at all, using PHP.
     
    jumpenjuhosaphat, Aug 17, 2006 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    ok - create your html input buttons. have them in a form - that posts to the same url but with a querystring ?posted=true

    in the top of your page, have some php code to detect if posted = true, if it is then do an update query, and display a message - otherwise display the form.
     
    ccoonen, Aug 17, 2006 IP
  3. jumpenjuhosaphat

    jumpenjuhosaphat Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Okay, that's what I was looking for. Thanks alot.
     
    jumpenjuhosaphat, Aug 17, 2006 IP