Bulk upload textfield values

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

  1. #1
    Hi,

    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