1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Bulk upload textfield values

Discussion in 'PHP' started by M.Zeb Khan, Sep 19, 2010.

  1. #1

    I have a huge form of more than 130 fields (textfields, textareas, checkboxes etc), I have this form in HTML format, I mean its a simple .html page. What I want is, for each field I want to set its value to value="<?=$row['textfieldname'];?>"

    Let's take the following textfield as an example:
    <input type="text" name="gender" id="gender" />
    Code (markup):
    I want to change it to"
    <input type="text name="gender" id="gender" value="<?=$row['gender'];?>" />
    Code (markup):
    I would really appreciate if you can advice an easy way to achieve this.

    PS: I've heard it can be done using Dreamweaver's regular expressions, anybody have this idea?

    Many Thanks in advancee
    M.Zeb Khan, Sep 19, 2010 IP