migli

migli supports this item

Supported

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

297 comments found.

Hello, your plugin I like!

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!

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

Hi, any option to set a field as hidden?

Hi,

Yes of course, just this way :

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

If you need anything else you’re welcome,

Gilles

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 ?

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

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

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

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

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

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 Arbi,

About your first remark (mergeValues) :

I think you can achieve your goals using the right functions.

Each form has its own session vars : $_SESSION['my-form']['field-1'], etc.

When you create a form, it looks for posted vars corresponding to form fields, and register them in session : $_SESSION['my-form']['field-1'] = $_POST['field-1'].

BUT if you called Form::clear('my-form') BEFORE building your form, it will not.

So when you’ve done what you have to do with posted values (db record, ...), call Form::clear('my-form')

This will unset all your form session vars, and if you instanciate your form on same page it’ll not register posted values in session.

mergeValues doesn’t register anything in session. It’s used mainly with step forms, to group previously posted values (stored in session), and returns an unique array with fieldnames -> values

About your 2nd remark :

Thanks for your suggestion, I think it’s a good idea. All that can make things more simple for users are good ideas.

But the inconvenient is that with this method you can only make simple validations (required, email, ...).

If you have more complex validations to do, you still need to call validator manually (ex : min 2 checkboxes checked, or maxlength, patterns, ...)

I add this on my TODO list, and will think about the best way to make it efficient & as simple as possible.

Gilles

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

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

You’re welcome

vedanet

vedanet Purchased

Hi, I installed the form on a landing page after clicking submit, as I have to do to get back at anchor text #contact. Where can I find an example?

Hi,

Thanks for purchase.

You just have to call setAction function this way :

$form->setAction ('http://www.your-site.com/page.php#anchor');

If you need anything else you’re welcome,

Gilles

vedanet

vedanet Purchased

thanks a lot

You’re welcome ; don’t hesitate to contact me if you need anything, rather than wasting time, that’s not a problem

unk_me

unk_me Purchased

Hello, I want to buy this but a question if my customer fills in the form, will be the “sender e-mail address” same as what the customers typed in?

Thanks.

Hello,

When you send any form from a website, it’s recommended to set as sender and email address from your domain name, to avoid beeing considered as spammer.

This said, Php Form Builder comes with 2 built-in functions to send emails :

$form->sendMail uses minimum configuration, you have to set ”$from”, which is the sender.

$form->sendAdvancedMail gives more options, you can set from_name, from_email & reply_to.

If you need anything else you’re welcome,

Gilles

unk_me

unk_me Purchased

Thanks migli.

you’re welcome

96018f52-5e3f-486e-8665-bc508da894c9 – 4 Feb 2017 REGULAR LICENSE

Hi,

first: thanks for your great templates, it saved me a lot of time!

second: how ist it possible, to “include_once” in the forms

(for example):

form->addHtml(include_once newfile.php);

that it is rendered ????

thx so much for your help.

Kjetil

Hi Kjetil,

Thanks for purchase.

You can achieve this this way :


$html = file_get_contents('newfile.php'); // or .txt, .xml or any
$form->addHtml($html);
http://php.net/manual/fr/function.file-get-contents.php

If you need anything else you’re welcome,

Gilles

XoDev

XoDev Purchased

Pre-sale question: I am planing on using this in a new project. Looking at the docs I can get all fields in form through $_SESSION‘formname’ but I cant find the way to show (access) field values (options) that I need for reports that will be created after submission (note that there will be at least 90+ fields with 4+ options per field).

For example there is a field (checkbox) Favorite color with options “red”, “green”, “blue”, “yellow”. Lets say user selects red and blue and I store it in a database but later when I am creating report I will be needing ALL options that were set for that field. I can reinitialize the form to get $_SESSION‘formname’ but I also need form values for each of those field (I already have ones that user selected (redand blue) but I need all others (“red”, “green”, “blue”, “yellow”).

I hope this makes sense. Thank you in advance

That would be an idea to add this in templates. I add this on my TODO list.

But for now you have to program this by yourself … you just have to build your array with fieldtypes, names, ... and use values in Php Form Builder functions.

XoDev

XoDev Purchased

Hey migli, just purchased FormBuilder. Regarding previous question: I found a way to register form field options (values) in $_SESSION along with field names.

just changed $_SESSION$form_ID[] = $name; on line 2055 (Form.php) to :

$_SESSION$form_ID$name = $this->radio$name; $_SESSION$form_ID$name = $this->checkbox$name;

so now I can access field names AND field options (values) assigned to fields while creating form… That is what I was asking for few questions above.

Please consider adding (and expanding) this to your GREAT product. Oh and thanks for saving us hours of work ;)

Hi,

Thanks for your suggestion, I’ll think about this when possible.

We are trying to find something that allows us to generate a description for real estate properties based off of values inputted such as number of bedrooms, bathrooms, beachfront, mountain view, ect. Could this be used to accomplish something like that?

Hi Jdmueller84 ,

Php Form Builder will help you to build … forms. To generate your real estate properties you have to get values from your database and create a php function to display results.

If you need anything else you’re welcome,

Gilles

RSMG

RSMG Purchased

Hello, I got a pre-sale question: Is this possible with your form builder to build an order form like this:

Step 1: A lot of radio buttons Step 2: A lot of radio buttons Step 3: Display all clicked radio buttons as an overview Step 4: Billing details Step 5: Send all clicked radio buttons and billing details via mail

Is it possible?

Thanks and best regards!

migli

migli Author

Hi RSMG,

Yes, no problem.

On step 3 you can use mergeValues() to get previously posted values and display recap.

And this template should be a good way to start.

I can help with all incoming questions.

Gilles

RSMG

RSMG Purchased

Thank you!

migli

migli Author

You’re welcome

HI

I am unable to create multiple image upload containers in a single form

acting like i I upload one image its appending to another container

$lfileUpload_config = array( ‘xml’ => ‘images’, ‘uploader’ => ‘imageFileUpload.php’, ‘btn-text’ => ‘Browse …’, ‘max-number-of-files’ => 1 ); $ffileUpload_config = array( ‘xml’ => ‘images’, ‘uploader’ => ‘imageFileUpload.php’, ‘btn-text’ => ‘Browse …’, ‘max-number-of-files’ => 10 );

$form->addFileUpload(‘file’, ‘logo’, ’’, ‘Upload Logo’, ‘id=imgFileUpload’, $lfileUpload_config);

$form->addFileUpload(‘file’, ‘fimage-1’, ’’, ‘Upload Image’, ‘id=fimage1’, $ffileUpload_config);

whats the wrong with it

migli

migli Author

Hi,

Unfortunately, fileupload plugin doesn’t allow multiple instances in same form.

I planned to add another upload plugin as soon as possible, maybe FineUploader5, or jQuery.filer.

Meanwhile you can :

  1. use simple upload fields without plugin
  2. create 2 forms with a single uploader in each, with a callback to add hidden field with the uploaded file in the 1st one (a bit complicated solution)
  3. add FineUploader5 or jQuery.filer to plugins by yourself : just upload plugin to plugins dir, create an xml file in plugins-config dir and setup your includes and js code into xml file.

    Details here : https://www.phpformbuilder.pro/documentation/class-doc.html#adding-your-own-plugins.

    Adding plugin to package is as easy as using any jQuery plugin without Php Form Builder. Probably the best solution for you.

If you need anything else you’re welcome,

Gilles

by
by
by
by
by
by