problem on two actions within the same form?

Discussion in 'PHP' started by alanX, Jun 2, 2006.

  1. #1
    Hi:
    problem is like that:
    <form method="post" action="delete.php">
    .... <input type="checkbox"........//code
    </form>
    if i want to take two actions(delete.php and edit.php) within the same form
    How can achieve that?

    thanks
     
    alanX, Jun 2, 2006 IP
  2. soj

    soj Well-Known Member

    Messages:
    233
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    138
    #2
    it really depends on what you want to do, if you have a drop down box selecting delete or edit, then you can put the contents of delete.php and edit.php into the one php script, and then do an if statement to do the delete task if delete is chosen, else do the edit task if edit is chosen
     
    soj, Jun 3, 2006 IP
  3. alanX

    alanX Peon

    Messages:
    61
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks :
    i get the idea and i know how to implement it .^^
     
    alanX, Jun 3, 2006 IP
  4. smo

    smo Well-Known Member

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    123