migli

migli supports this item

Supported

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

290 comments found.

MWNS

MWNS Purchased

Hello, your plugin I like!

MWNS

MWNS Purchased

:)

MWNS

MWNS Purchased

I sent you an internal mail with some questions about your plugin (y)

I just answered you by mail. Please explain more if you want more help Gilles

hi there,

i was wondering if you could help me,

i used one of the templates however the when i ran the PHP i didn’t load up the assets (the image of the person) as well as both the first name and last name were not on the same line even though the template showed them to be.

if you need any other information, i would be happy to provide them

kind regards

Hi Rezgolden,

Thanks for purchase.

Can you please contact me using my contact form, then you can send me your ftp, and please explain more because I don’t understand exactly your request.

Thanks,

Gilles

hi there, thanks for the speedy reply, i wanted to let you know i’ve now sent a query through your contact form

Hi,

I think I didn’t receive your message. Did I already answer you ?

Please send another.

Gilles

Hello, iv purshased your product last year, and today i have purshased some support :) i use it only since some days.. and i can say its realy a very good work. Now i have emplemented some source and because i have an exesting work, i just take what i need for some pages till i rewrite all pages with pfb. now i have a question please: how can i control the validate of the fields.forms without posting with pfb. i mean i post the form with a java script ( existing source !) and i can not use : if(isset($_SESSION‘errors’)).. or if ($_SERVER[“REQUEST_METHOD”] == “POST” ) .. so how can i control a required field as a simple form with pfb. Thank you very much. PS: i speak better french!

Chrisack

Chrisack Purchased

Hello, I am interested in you app but had a few questions. First, does this allow me to make forms that run independently of the app? Meaning, when I design a form that includes logic, can I take that code and use it on a site without the Form Builder app. So if I were to turn the app off it would still run independently. Second, can I connect the form to submit to a SQL database? Third, can I redirect to a page after the form based on a choice that was made in the form. For example, I have a drop down with five choices and depending on which one the user chooses depends on which page they are redirected to after they submit their form.

Thanks for your feedback.

Hello,

Php Form Builder is not an application (no backend), but a php class including many features.

So you just have to put phpformbuilder folder on your server (nothing to install, nothing to turn on or off), then you can build your forms (see documentation & templates codes)

For database, answer is here : https://www.phpformbuilder.pro/documentation/class-doc.html#database-main

To redirect, just use php header function as you would do with any php script.

If you need anything else you’re welcome,

Gilles

MWNS

MWNS Purchased

Hi, any option to set a field as hidden?

migli

migli Author

Hi,

Yes of course, just this way :

$form->addInput('hidden', 'field-name', 'field-value');

If you need anything else you’re welcome,

Gilles

MWNS

MWNS Purchased

thank you

erreur 500 sur un serveur en production : La page ne fonctionne pas

Impossible de traiter cette demande via à l’heure actuelle. HTTP ERROR 500

Comment puis-je résoudre SVP ?

migli

migli Author

Bonsoir Reivilo33,

Erreur 500, mais où ? Quelle adresse ?

Gilles

Hi Gilles,

I’ve bought your php form builder at envato, and have a problem when using any of the templates, like for example: https://www.phpformbuilder.pro/templates/bootstrap-forms/contact-form-2.php

The error message I get at the browser is next:

Fatal error: Call to a member function xpath() on boolean in /homepages/39/d486201503/htdocs/phpformbuilder/Form.php on line 2651

I’d appreciate your help to solve it.

Thanks

migli

migli Author

Hi Jose,

Thanks for purchase.

It’s difficult for me to help without more informations : could you please send me your ftp ?

Your issue comes from plugin use, but I can’t say more without testing.

Thanks,

Gilles

arzoum

arzoum Purchased

Hi,

Is it possible to use AJAX to (a) validate, (b) show errors and© save form submissions without reloading the entire page?

You are using sessions on the server side to handle the errors, which is good, but is there a way to display them once you get a response back from the server using JS?

I couldn’t find a demo in the docs that didn’t reload the entire page when the user submits the form. Maybe I wasn’t looking in the right place?

Thanks, - Arbi @arzoum

migli

migli Author

You’re right Arbi, there’s no demo with ajax post, (except phpformbuilder/templates/bootstrap-forms/customer-satisfaction-step-form/cs-steps.php) and it’s a good idea to add one. I add this on my TODO list.

If you post form using AJAX, you can access to $_POST values in php target file, validate, send email or record in db, and reuse them for display in html target.

Does it help ?

Gilles

Hi,

Yes. I think having an AJAX example would be great. There’s very little excuse these days to reload the entire page after you submit a form. I was able to use the load() function in jQuery to accomplish what I wanted to do.

Demo: http://d.pr/v/BNMn/5svPzhh7

The server-side PHP script that’s called by the jQuery AJAX function outputs HTML instead of JSON. But I might change that if I want more control over the UI.

Thanks, - A

Hi,

As I said before I’ll add ajax post demos as soon as I can find time.

If you need anything else you’re welcome,

Gilles

arzoum

arzoum Purchased

Hi,

Having trouble validating required checkboxes in v2.2. There seems to be a bug on line 843 in validator.php.

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/pss/libs/phpformbuilder/Validator/Validator.php on line 843

When a checkbox input type (which is an array) is required, this line fails:

$this->fields[$key] = htmlspecialchars($_POST[$key]);

This works:

$this->fields[$key] = (!is_array($_POST[$key]) ? htmlspecialchars($_POST[$key]) : $_POST[$key]);

HTH, - Arbi

migli

migli Author

Hi Arbi,

This is not a bug, but just the way required checkboxes goes.

When a checkbox is not checked, unlike other fieldstypes it’s not posted (that’s how html5 works).

You’ll find solution here : https://www.phpformbuilder.pro/documentation/class-doc.html#php-validation-examples

Gilles

Hi Gilles,

Yes. That example answers my question. I was using the wrong validation syntax for checkboxes. I got it working. Demo: http://d.pr/v/BNMn/5svPzhh7

One thing I noticed is that during development, when you are adding/removing input fields, using mergeValues() is not so great to build a Parameters key/value pairs for updating the database (e.g. for PDO parameter binding) because it uses the Session object. The session object contains all the input fields/values until it expires. Even the elements that you decide not to include in your form stick around in the session object for its lifetime. This makes debugging pretty annoying.

Anyways, It would be nice to have a function that returns a 2D array with the following: Input name, type (checkbox/radio/text etc…), required (binary) and current value. With this array, you can easily run your validator using a loop and build a parameter key/value array for your DB queries.

Hope that makes sense.

Thanks, - Arbi @arzoum

Hi! formbuilder looks very nice and simple to use it. Just one question I didn’t found in documentation or here in the comments! Is there a ready2use script for creating an iCAL-File at the end of the form for directly storing meeting-information for example from a form to the users outlook or mac-calender. thanks for your answer, Daniel

migli

migli Author

Hi Daniel,

generating iCAL files is a bit specific, and Php Form Builder will not do it by itself. BUT …

I worked before on a project for a client and had to build iCAL files. I used iCalcreator, great php class and it works fine.

Php Form Builder can collect all informations required to build your iCal ; when your form is posted then you can call iCalcreator, build and save your iCal according to posted values.

I can help a bit if you want, but will just send you a basic script, then you’ll have to work on this by yourself if you have php knowledge, or find someone to help (sorry, I can’t find enough time).

Gilles

Hi Gilles!

Many thanks for your fast reply and idea for using iCAL (it looks like something from Apple :D ). Sounds great! I still check whether we can use formbuilder for our application and I like to come back to your offer in that case.

Daniel

migli

migli Author

You’re welcome

by
by
by
by
by
by