Which variable name should I use in table settings?

schult70 19 Mar, 2011
Hello,

I have created a form in chronoforms in which I modified the code to allow for a large textbox with unlimited characters to be entered, like this:

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Reason new people should join</label>
    <textarea rows="2" cols="40"></textarea>
  
  </div>
  <div class="cfclear"> </div>
</div>

Everything works fine when you enter the information into the form (box accepts all characters), but when you view the information in the attached table, there is no information there. I suspect that I have chosen the wrong variable type for the table (I changed it from default "varchar255" to "longtext".)

Which variable type should I use to capture a long text string? Or am I completely off base?

Thanks in advance!
schult70 19 Mar, 2011
Nevermind. I think my code is faulty.
GreyHead 19 Mar, 2011
Hi schult70,

Using LONGTEXT will be fine, the problem here is that your textarea has no name attribute so the input can't be identified.
<textarea name='some_name' id='some_name' rows="2" cols="40"></textarea>


Bob
This topic is locked and no more replies can be posted.