1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.
    Dismiss Notice

Leer valores de un form

Discussion in 'Community' started by gatticlaudio, Jun 25, 2018.

  1. gatticlaudio

    gatticlaudio Claudio

    Level: Community
    Hola, trabajando con Joomla, estoy intentando insertar en una tabla, leyendo los valores de un formulario.
    Lo que no s? hacer, es invocar desde el PHP el contenido de la variable definida en un formulario.
    Quiero hacer varios insert, dependiendo del valor que el usuario coloca en el formularios.

    $profile = new stdClass();
    $profile->cuota=1;
    $total_cuotas=JRequest::getVar('cobranzas__cuotas');
    // Insert the object into the user profile table.
    for ($i = 0; $i < $total_cuotas; $i++) {
    $result = JFactory::getDbo()->insertObject('cuotas', $profile);
    }

    Muchas gracias
     
  2. troester

    troester Administrator Staff Member

    Level: Community
  3. gatticlaudio

    gatticlaudio Claudio

    Level: Community
    Thank you !!!!!!!!
    Muchas gracias....
     

Share This Page