0 Replies Latest reply on Mar 4, 2010 2:57 PM by GabrielGelsy

    Accessing data from a dynamic text field id

    GabrielGelsy

      Hi!

       

      I made a text field with a dynamic id. The source code of the dynamic text field is here:

       

      <input name="text_dynamic<?php echo $row_text['id']; ?>" type="text" id=dynamicElement<?php echo $row_text['id']; ?> value="<?php echo $var; ?>"/>

       

      The problem is that I don't know how to acces to the data of the text field. I have tried many times but the only that I get are more and more errors.

       

      The form that contains the text field send the data by post method.

       

      If I have this php sentence: "<?php echo $_POST['field'] ?>", what I should put instead 'field' if I want to show the content of the text field?

       

       

      Notes:

      -I used Dreamweaver CS4

      -The form that contains the text field send the data by post method

      -I have a repeating region that contains the form and show a text field for each element of the repeating region

      -I want to use the "update record" function with the text fields

      -I have the problem with the following sentence:

       

      GetSQLValueString($_POST['field'], "int"),

       

      (where 'field' is the id of the text field)