Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sending checkbox's value to php

    Hello
    i have simple question
    i have 5 checkbox's in aform i like to delete rows in the db
    based on the checked boxes i checked
    for example :
    i have :
    <input type=checkbox name=foo1>
    <input type=checkbox name=foo2>
    <input type=checkbox name=foo3>
    <input type=checkbox name=foo4>
    <input type=checkbox name=foo5>

    so if i will check foo1 and foo3
    it will delete me the row by the id = foo1 and foo3

    hope you got my point

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    $sql = delete from tablename where fieldname = '$foo1' or fieldname = '$foo3';

    This belongs in the mysql forum.
    Last edited by Spookster; 08-16-2002 at 05:58 AM.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

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