Forums

Retreiving input value from text box

quicklearner66 23 Jun, 2009
Hi i am new to this. I am using chronoforms. I have created a form and below is a sample code. How do i retreive the value entered by the user and store it in variables so as to later insert into my database. Can anyone please help

This is part of the form code
<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Question</label>
    <input class="cf_inputbox" maxlength="150" size="30" title="" id="text_1" name="question" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">a</label>
    <input class="cf_inputbox" maxlength="150" size="30" title="" id="text_2" name="option1" type="text" />
  
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">b</label>
    <input class="cf_inputbox" maxlength="150" size="30" title="" id="text_4" name="option2" type="text" />
Max_admin 23 Jun, 2009
Hi,

do you have a table to save the data to ? if yes then how did you create it ? if you created it using the "Create table" icon in the forms manager then you should not worry, if its your table then make sure your table column names matches the forms fields names!

then enable the DB connection under the DB connection tab and select your table from the tables list!

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
quicklearner66 23 Jun, 2009

Hi,

do you have a table to save the data to ? if yes then how did you create it ? if you created it using the "Create table" icon in the forms manager then you should not worry, if its your table then make sure your table column names matches the forms fields names!

then enable the DB connection under the DB connection tab and select your table from the tables list!

Max




Thanks max, there was some problem with my db connection (was not updating) so i was trying to work around it. All working fine now
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}