How to update database from multiple value textarea

Discussion in 'Programming' started by phitur, Nov 7, 2006.

  1. #1

    I'd like to know how to create an action page that will update the database using the multiple values from a textarea field as primary keys.

    thanks
     
    phitur, Nov 7, 2006 IP
  2. phitur

    phitur Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The action page sees the textarea values as a list if comma delimited,
    I would still want to enter data with carriage return.

    example:

    abc
    xyz
    lmn
    tsts
    ...
     
    phitur, Nov 7, 2006 IP
  3. datropics

    datropics Peon

    Messages:
    309
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #3
    glad we can help! lol
     
    datropics, Nov 7, 2006 IP
  4. phitur

    phitur Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    well I wish there was a more elegant way, the trim and replace function don't work well, so if the users don't enter the data all on one row only, it won't work.
     
    phitur, Nov 7, 2006 IP