• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: submitting data from a form to a table in rsform

submitting data from a form to a table in rsform 14 years 2 months ago #12895

  • tim2727
  • tim2727's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I am trying to submit data entered in a form to a database table. I have followed the online example however, the data just sits in the "submitted data" section and does not get copied into my desired table.

The table is in the same database as my joomla site and the rsform tables.

I am using rsform! not rsform!pro, I have read that a mapping plugin can be used on the pro version however I want to stick with the free version if possible.

Is there a solution to this or do I have to buy the full version?

Regards,

Tim
The administrator has disabled public write access.

Re:submitting data from a form to a table in rsform 14 years 4 weeks ago #13381

  • veruscae
  • veruscae's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi this works for me: (using Joomla 1.5.22 + RSForm 1.0.6):

if(isset($_POST)){

$fechaSolicitud=$_POST; // textbox
$nombreSolicitante=$_POST; // textbox
$nacionalidad=$_POST; // input type select

$nac='';
for($i=0; $i<count($nacionalidad); $i++ ) {
$nac=$nacionalidad[$i];
}

$correo=$_POST ; // textbox


$database->setQuery("
INSERT INTO intra_form_tablename
(fecha_sol, nombre, nacionalidad, correo_sol)
VALUES (
STR_TO_DATE('".$fechaSolicitud."','%Y/%m/%d' ) ,
'".$nombreSolicitante."',
'".$nac."',
'".$correo."' )
" ) ;

$database->query() ;
}

good luck!
Last Edit: 14 years 4 weeks ago by veruscae.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!