How to EXTRACT this??

Discussion in 'PHP' started by badmasketa, Dec 15, 2008.

  1. #1
    [​IMG]

    look @ the above form.
    what i want is, when the user submitted that form then i wanna extract or submit only filled fields.

    Lets suppose, when user filled only 2 rows there on the form and leave back 3 rows textboxes, then how can we extract only those filled fields(items)??

    Could you guys help me?? :confused::confused:
     
    badmasketa, Dec 15, 2008 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    www.php.net/empty - To check which rows are filled out (can use other things, but this is simplest), then simply handle the data how ever you were planning on originally, just not including the empty fields.
     
    Danltn, Dec 15, 2008 IP
  3. ksamir2004

    ksamir2004 Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    why yu enter blank or null value row. Modify Column data type i.e FILE_OWNER VARCHAR2(200) NOT NULL).
    Then you will not insert any empty row or blank row. you can create dynamic table accourding to row.

    In future if you want to add 1 or 2 more rows, then u just create one more column in Table name as USER_ID.
    Count how many rows created by particular user, if 3 then just insert
    $string1="USERNAME"
    $string2 = select count from table where user="USERNAME";
    USER_ID= $string1."_".$string2;

    accourding to this you can make a changes.

    let me know if you have any isse.

    wil help you out.
     
    ksamir2004, Dec 16, 2008 IP