migli

migli supports this item

Supported

This author's response time can be up to 1 business day.

320 comments found.

Hi,

Before buy your plugin, I have a question. It’s possible to change (autocomplete) fields if user change an another field. For exemple if I write zip code, city change automatically (with ajax requierry).

Thank you very much.

Hi,

Yes, you can use ajax like you would do with any html form.

This comment is currently being reviewed.

Everything works fine, great plugin! I can upload the files, now I want to store the names of the files in the database, how can I do?

Question, should this be programmed in defaultFileUpload.php?

No, you have to put this in your main file, when form is posted & validated.

thank you!

Hi

Just purchased your product and was wondering if this can be achieved:

• Use exisiting form HTML/css I have set up • Apply required php form builder code to get it running

I can see you can apply bootstrap template and then change CSS. If I have all this set up can just applying code folders/ code work.

Thanks in advance

Kim Hiwell

Hi Gilles,

No problem understand.

I have tried to set up a form now and trying to add the code to my html file. It doesn’t seem to be working.

I’ll email you my html code and the amends to the plugins-path.php file.

I think I have set up correct but doesn’t seem to work.

One question on this all your code can be added to an exisiting html file without changing file extension to PHP?

Kim

Hi Kim,

You have to change your file to .php.If you want to keep .html for users you can use htaccess to redirect html to php.

I’m online, if you want quick live help we can use Teamviewer : send me ID & pass using my contact form

just sent details

Hello, I have problems putting a date type field inside a dependent field, you know how I can fix it?

Yes, I fixed it but update isn’t published yet.

  1. Open phpformbuilder/plugins/dependant-fields/dependant-fields.css
  2. cut “overflow: hidden;” from .hidden-wrapper and paste it to .hidden-wrapper.off
  3. minify file to phpformbuilder/plugins/dependant-fields/dependant-fields.min.css

Thank you! I used the default theme and solved everything :)

Another question, how can i change the language of the months in date type fields? Thank you

Each plugin has a corresponding xml file in plugins-config dir.

Open pickadate.xml, you’ll find a node with french config. Duplicate this node, rename it and change french to your language, then call plugin in your form with your custom config, using the xml node name :
$form->addPlugin('pickadate', '#field-name', 'pickadate-french'); // replace pickadate-french with your xml node name

thank you

Hello friend, some way to use two file configuration files fileupload.xml? I need some settings in a form with attachments and another setting in another form, you could tell me what I should do to be able to use two .xml files, one for each form

Hi Migli, thx again for your great plugin … I`ve got an error I don`t know how to deal with it.

foreach($_SESSION[‘storlist’] as $arrstorl){ print_r($arrstorl); $form->setCols(2, 2); $form->addInput(‘text’, ‘storage-nr’, $arrstorl[‘storage_id’], ’’, ‘required’); $form->setCols(0, 3); $form->addOption(‘the-padlock’, ‘Padlock)’, ‘Padlock (10 €)’); $form->addOption(‘the-padlock’, ‘Personal padlock’, ‘Personal padlock’); $form->addPlugin(‘bootstrap-select’, ’.selectpicker’); $form->addSelect(‘the-padlock’, ’’, ‘class=selectpicker show-tick, required’); $form->addPlugin(‘bootstrap-select’, ’.selectpicker’); $form->addSelect(‘the-alarm’, ’’, ‘class=selectpicker show-tick, required’); $form->setCols(0,3); $form->addOption(‘the-alarm’, ‘Alarm)’, ‘Alarm (15 € for 28 days)’); $form->addOption(‘the-alarm’, ‘Without alarm’, ‘Without alarm’); $form->addPlugin(‘bootstrap-select’, ’.selectpicker’); }

The Output is (when 3 arrays are available: Array ( [storage_id] => 295 [padlock] => 1 [alarm] => 1 ) Array ( [storage_id] => 204 [padlock] => 1 [alarm] => 1 ) Array ( [storage_id] => 215 [padlock] => 1 [alarm] => 1 )

And at form renders the input texts are shown correctly from 0-2 arrays, but the “Select Option” forms are shown in a wrong way:

at the first array its correct. at the second array the options are 2 times (means, I can select between Padlock (10 €), Personal Padlock, Padlock (10 &euro), Personal Padlock, the same with the Alarm at the third array, the options are shown 3 time (mean, I can select between Padlock (10 €), Personal Padlock, Padlock (10 &euro), Personal Padlock, Padlock (10 &euro), Personal Padlock.

I don`t know, where the error is, when I choose “nomal bootstrap-html” like $form->addHtml(’<select class=”selectpicker”> // <option>Padlock</option> // <option>Personal Padlock</option> // </select>’);

it works the right way.

So perhaps can you help me?

Thx in advance, I hope I could explain the problem in the right way.

Hi Kjetilsusi,

the error is due to your input select names.

On each loop your input and selects has same name whereas each should have a unique name.

Solution is to increment index and use it with select names :

<?php
$index = 1;
foreach($_SESSION['storlist'] as $arrstorl){
    print_r($arrstorl);
    $form->setCols(2, 2);
    $form->addInput('text', 'storage-nr' . $index, $arrstorl['storage_id'], '', 'required');
    $form->setCols(0, 3);
    $form->addOption('the-padlock' . $index, 'Padlock)', 'Padlock (10 €)');
    $form->addOption('the-padlock' . $index, 'Personal padlock', 'Personal padlock');
    $form->addSelect('the-padlock' . $index, '', 'class=selectpicker show-tick, required');
    $form->setCols(0,3);
    $form->addOption('the-alarm' . $index, 'Alarm)', 'Alarm (15 € for 28 days)');
    $form->addOption('the-alarm' . $index, 'Without alarm', 'Without alarm');
    $form->addSelect('the-alarm' . $index, '', 'class=selectpicker show-tick, required');

    $index ++;
}

// no need to add plugin into loop
$form->addPlugin('bootstrap-select', '.selectpicker');

Once posted, you can use same index and loop into posted values.

If you need anything else you’re welcome,

Gilles

Thanks so much for your help

you’re welcome

Hi Migli, thx again for your great plugin … I`ve got an error I don`t know how to deal with it.

foreach($_SESSION[‘storlist’] as $arrstorl){ print_r($arrstorl); $form->setCols(2, 2); $form->addInput(‘text’, ‘storage-nr’, $arrstorl[‘storage_id’], ’’, ‘required’); $form->setCols(0, 3); $form->addOption(‘the-padlock’, ‘Padlock)’, ‘Padlock (10 €)’); $form->addOption(‘the-padlock’, ‘Personal padlock’, ‘Personal padlock’); $form->addPlugin(‘bootstrap-select’, ’.selectpicker’); $form->addSelect(‘the-padlock’, ’’, ‘class=selectpicker show-tick, required’); $form->addPlugin(‘bootstrap-select’, ’.selectpicker’); $form->addSelect(‘the-alarm’, ’’, ‘class=selectpicker show-tick, required’); $form->setCols(0,3); $form->addOption(‘the-alarm’, ‘Alarm)’, ‘Alarm (15 € for 28 days)’); $form->addOption(‘the-alarm’, ‘Without alarm’, ‘Without alarm’); $form->addPlugin(‘bootstrap-select’, ’.selectpicker’); }

The Output is (when 3 arrays are available: Array ( [storage_id] => 295 [padlock] => 1 [alarm] => 1 ) Array ( [storage_id] => 204 [padlock] => 1 [alarm] => 1 ) Array ( [storage_id] => 215 [padlock] => 1 [alarm] => 1 )

And at form renders the input texts are shown correctly from 0-2 arrays, but the “Select Option” forms are shown in a wrong way:

at the first array its correct. at the second array the options are 2 times (means, I can select between Padlock (10 €), Personal Padlock, Padlock (10 &euro), Personal Padlock, the same with the Alarm at the third array, the options are shown 3 time (mean, I can select between Padlock (10 €), Personal Padlock, Padlock (10 &euro), Personal Padlock, Padlock (10 &euro), Personal Padlock.

I don`t know, where the error is, when I choose “nomal bootstrap-html” like $form->addHtml(’<select class=”selectpicker”> // <option>Padlock</option> // <option>Personal Padlock</option> // </select>’);

it works the right way.

So perhaps can you help me?

Thx in advance, I hope I could explain the problem in the right way.

Hi, I purchased this script today. I cannot access any of the templates. when I try I get the following error. Fatal error: Class ‘phpformbuilder\Form’ not found in /home/**/public_html/form/templates/bootstrap-forms/validation-with-jquery-example-form.php on line 45

Please advise,

Hi Azk613,

Thanks for purchase.

Please see answer here : https://www.phpformbuilder.pro/documentation/troubleshooting.html#fatal-error

and contact me again if you need more help (you can send me ftp via my contact form

Gilles

Hi.

1) Is it possible to include a repeater field in a form? 2) Does it integrate well with Full Calendar Js?

Thanks.

You’re welcome

Hi, I really need to group 9 items on one row with groupinputs (several of the items are small, 1 column). It’s a repeater field so it makes more sense to have them all on one row. Any chance you can provide the code?

Hi,

Thanks for purchase. I thought this could be unuseful, but it seems in some case it has to be done, so … I’ll work on this. Can you please just email me, just to remind me to work on this ?

Then I should send you the updated files in the 2 incoming days.

Gilles

done, thank you!

You’re welcome

Hi,

I just want to know that is it possible to create calculation like the attachment. I cant find any example on Template section that i can view for reference. If you don’t mind, can you show example code on how to do that. Thanks.

Screenshot : http://imgur.com/a/40JFm

Hi,

Sorry for the late answer. I just answered to your email.

Gilles

MWNS

MWNS Purchased

Hello! One question, is there a simple way to do phpformbuilder directory change?

You can change directory to any other, then just change path when you include Form.php and validator :

// replace "your-dir" with yours in the following lines
include_once rtrim($_SERVER['DOCUMENT_ROOT'], DIRECTORY_SEPARATOR) . '/your-dir/phpformbuilder/Form.php';include_once rtrim($_SERVER['DOCUMENT_ROOT'], DIRECTORY_SEPARATOR) . '/your-dir/phpformbuilder/Validator/Validator.php';
include_once rtrim($_SERVER['DOCUMENT_ROOT'], DIRECTORY_SEPARATOR) . '/your-dir/phpformbuilder/Validator/Exception.php';
MWNS

MWNS Purchased

Thanks, but I would like to change not only the directory but also phpformbuilder, is it possible?

not a good practice because it uses namespaces.

Hello, Thanks for your script. However,I didn’t succeed working with mysql. I get some error with message

PHP Fatal error: Uncaught Error: Class ‘Mysql’ not found in /var/www/html/xxxxx.php

Thank you for the quick response. Yes, I’ve been insert the require file for mysql class. Below is my code to call mysql class and inserting data in database.
if ($_SERVER["REQUEST_METHOD"] == "POST" && Form::testToken('contact-form-3') === true) {
    include_once rtrim($_SERVER['DOCUMENT_ROOT'], DIRECTORY_SEPARATOR) . '/phpformbuilder/Validator/Validator.php';
    include_once rtrim($_SERVER['DOCUMENT_ROOT'], DIRECTORY_SEPARATOR) . '/phpformbuilder/Validator/Exception.php';
    $validator = new Validator($_POST);
    $required = array('merchant', 'category', 'start', 'end', 'title');
    foreach ($required as $required) {
        $validator->required()->validate($required);
    }

    if ($validator->hasErrors()) {
        $_SESSION['errors']['contact-form-3'] = $validator->getAllErrors();
    } else {

        require_once rtrim($_SERVER['DOCUMENT_ROOT'], DIRECTORY_SEPARATOR) . '/phpformbuilder/database/db-connect.php';
        require_once rtrim($_SERVER['DOCUMENT_ROOT'], DIRECTORY_SEPARATOR) . '/phpformbuilder/database/Mysql.php';

        $db = new Mysql();
        $insert['ID'] = Mysql::SQLValue('');        
        $insert['merchant'] = Mysql::SQLValue($_POST['merchant']);
        $insert['category'] = Mysql::SQLValue($_POST['category']);
        $insert['start_date'] = Mysql::SQLValue($_POST['start']);
        $insert['end_date'] = Mysql::SQLValue($_POST['end']);
        $insert['judul'] = Mysql::SQLValue($_POST['title']);
        $insert['description'] = Mysql::SQLValue($_POST['message']);
        if (!$db->insertRow('MY_Table', $insert)) {
            $msg = '<p class="alert alert-danger">' . $db->error() . '<br />' . $db->getLastSql() . '</p>' . " \n";
        } else {
            $msg = '<p class="alert alert-success">1 row inserted !</p>' . " \n";
        }
        echo $msg;    
        $sent_message = '<div class="alert alert-success"><ul><strong>Thanks...</strong> : <li>' . addslashes($_POST['search-input-2']) . '</li></ul></div>' . "\n";
        Form::clear('contact-form-3');
    }
}

Strange … I carefully read your code and found nothing ugly.

Could you please send me your ftp ? I’ll make it work.

I sent you the ftp’s credential already.

Hi before purchase. I want to know if a field of the form is stored as a single field in the form’s table of the database for example: the field email of form is store in field email of form’s table in the database, or if the whole form contents are stored in one field of a table in the database?

I use geographic coordinates on my forms and I connect externally to the database and display those coordinates as markers and data as description of markers in google maps.

Is that possible or how those it work?

Thanks in advance.

Hi,

When you build or post your form nothing is saved into your database (you can use Php Form Builder without any db).

When form is posted and values validated you can save any value the way you want. You have to build your queries using the Mysql class included in package (or any other way if you prefer). Just as you would do with any posted values with php.

This should help : https://www.phpformbuilder.pro/documentation/class-doc.html#database-main

If you need anything else you’re welcome,

Gilles

Hi Gilles, Please check email. Thanks.

Hi,

I already checked, just need time because I’ve got a mountain of work. I do my best to give you news very soon

sumatek

sumatek Purchased

Hi Good Morning,

I have purchased the php form builder, i downloaded to my computer, when i am running php its showing this ERROR

Warning: include_once(/Applications/XAMPP/xamppfiles/htdocs/phpformbuilder/Form.php): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/phpfb/templates/bootstrap-forms/multiple-modals.php on line 10

Warning: include_once(): Failed opening ’/Applications/XAMPP/xamppfiles/htdocs/phpformbuilder/Form.php’ for inclusion (include_path=’.:/Applications/XAMPP/xamppfiles/lib/php’) in /Applications/XAMPP/xamppfiles/htdocs/phpfb/templates/bootstrap-forms/multiple-modals.php on line 10

Fatal error: Uncaught Error: Class ‘phpformbuilder\Form’ not found in /Applications/XAMPP/xamppfiles/htdocs/phpfb/templates/bootstrap-forms/multiple-modals.php:70 Stack trace: #0 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/phpfb/templates/bootstrap-forms/multiple-modals.php on line 70

We are waiting for your Prompt Response

migli

migli Author

Hi Sumatek,

Thanks for purchase.

You should solve your problem with this: http://phpformbuilder/documentation/troubleshooting.html#warning-include_once

If you need more help feel free to contact me again, I’ll be online all the day.

Gilles

sumatek

sumatek Purchased

AND PURCHASE CODE : 7d4133f1-59d7-4eb3-be90-946db2128a66

Hello,

I was wondering if anyone has followed up on integration with php frameworks since this was posted. Specifically CakePHP.

Thanks, Mike

migli

migli Author

Hello,

I’m about to publish a new version 3.0 with new features, and it would be a good idea to work on php frameworks, but I got absolutely no time to do this.

Maybe later I hope …

Gilles

Gilles,

Thank you for the quick reply!

Regards, Mike

by
by
by
by
by
by