Results 1 to 3 of 3

Thread: list item

  1. #1
    Join Date
    Jun 2008
    Location
    pakistan
    Posts
    109

    Unanswered: list item

    how can i save list item just like a form field suppose i have a text field name as object..i want to save it using php so i write $_POST['object']
    so i want to save the value of list items like i have 3 list item and i named this list as "itemlist"

    1.hello
    2.hi
    3.how are u

    Now i want to save these item if user select hi so how can i declare that something like that am i right or wrong just tell me

    $lisst=$_POST['itemlist'];
    if i am right then tell me and if i am wrong then also tell me how to write correct code or point out any tutorial which can point out my view ...

  2. #2
    Join Date
    Nov 2008
    Posts
    117
    If you want to select any one from the lists, use this coding
    Code:
    <form method="post">
    <input type="radio" name="item_list" value="hi"> hi
    <br>
    <input type="radio" name="item_list" value="hello"> hello
    <br>
    <input type="radio" name="item_list" value="how_are_you"> how are you
    </form> 
    <?PHP
    $_POST['item_list']
    ?>

  3. #3
    Join Date
    Jun 2008
    Location
    pakistan
    Posts
    109
    thanks dude help full me but i found it before but thanks once again cause you reply

Posting Permissions

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