1032 comments found.
how to upload multiple images along with other form inputs inserting files names to database? i have a form where i can post input fields and upload multiple images. By default it does the first file name insertion to db and all files upload to upload_folder. As we can see there is no relation of the db entry to all uploaded images for future use , only the first image name is inserted to table.
Hi Anupam498,
Thanks for purchase.
You can edit the PHP code to record each image filename to an individual database field, or for instance group them in a JSON field.
I can help if you send me your FTP access and form URL, but generally speaking I rarely proceed this way and prefer have a single file uploader for each field.
The reason is that with a multiple file uploader the files are not sorted, so you can’t choose the images ordering, and if for instance you want to replace only one image of four I don’t know how you can manage it.
If you need anything else you’re welcome,
Gilles
thanks, mailing you details
hi, have created a form and wants to insert data in to db, getting some errors in php related to PDO , please check the errors and find solution , the form link is given below
https://usg.mahaswinhealthcare.com/imagetest.phpHi,
Thanks for purchase.
The error messages means that the DB class calls “db->inTransaction()” but the DB object is null.
I guess it might be related to wrong database connection settings.
You should try to enable the debug mode with ”$db = new DB(true);” instead of ”$db = new DB();”
https://www.phpformbuilder.pro/documentation/php-pdo-database-class.php#connectlet me know if it helped,
Gilles
yes that worked after commenting out the server address part in in dbc-onnect.php
//if ($_SERVER[‘REMOTE_ADDR’] == ‘127.0.0.1’ || ....... define(‘DB_HOST’, ‘localhost’); .....
......
//}
As I understand it this means that your local server doesn’t return c standard value for $_SERVER[‘REMOTE_ADDR’].
It should return ‘127.0.0.1’ or ‘localhost’.
Rather than commenting the if … else you should:
- add
var_dump(127.0.0.1);to the connection file - refresh your page and copy the displayed value
- replace
‘127.0.0.1’with the value you copied and remove the var_dump()
- the connection file will detect your localhost, and when you’re on production server it’ll get the production server connection.
- you can synchronize your connection file between local/prod servers instead of using 2 different connection files.
If you need anything else you’re welcome,
Gilles
Hello guys! I have a question regarding where to find the things and not requesting any support. This is related to the all the forms templates I see on your live demo in json format, where can I find all the templates in json format? I can see you have replied to another customer “You can load/save your forms in JSON. No need for zip.” I have in the zip file the folder named templates and I can see after that bootstrap4, bootstrap5, etc and all the files in php format but I cannot located all these templates in json format. Can you please let me know where to find them or can you send them over please? It will save tremendous amount of time and help a lot. Looking forward to seeing your reply.
Hi,
When you use the Drag & Drop Form Builder you can save the forms in JSON, then reload them into the application.
These JSON files are used internally by the Drag & Drop Form Builder, they contain all the forms settings, but they are not designed for use outside the Drag & Drop application.
The templates in the ZIP are built in PHP, they don’t use the Drag & drop, so there’s no related JSON files.
Note also that drag & drop cannot do as much as PHP functions. For example, step forms need to be programmed in PHP, and cannot be done using drag & drop.
If you need anything else you’re welcome,
Gilles
Hi, I see references here to https://www.phpformbuilder.pro/documentation/wordpress-cms-users.php but that link results in “File not found.” Can anybody tell me where that file is located, if it still exists? Thanks.
Hi,
Thanks for purchase.
This page has been replaced, here’s how to load forms with Ajax: https://www.phpformbuilder.pro/documentation/quick-start-guide.php#cms-users-ajax-loading
If you need anything else you’re welcome,
Gilles
Hi,
Is it possible in the email table to have the label instead of the name?
For example this is what’s appearing on the email:
Registo embarcacao: 12-02-21
but this is not spelled correctly in portuguese.
It shoud use the label
Registo da embarcação: 12-02-21
it´s missing ç and ã and it look very unprofesional sending emails like this because of spelling errors.
Is there any fix I can use to solve this?
Also is there any bluid in way to send afert submit a reply email to the person using the form?
Thanks
Hi,
Thanks for purchase.
There’s two ways to solve your first problem.
PHP Form Builder uses shortcodes to replace values in the email templates. It also uses the special shortcode {table} which places the keys => values of the array supplied in the $options of the Form::sendMail($options) function.
First solution: using the {table} shortcode
You can pass the array of keys => values of your choice to the function. If no array is specified, $_POST is used. Here’s an example code:
$values = array(
'Registo da embarcação' => $_POST['registo-embarcacao'],
' Another label' => $_POST['value']
);
$options = array(
'sender_email' => 'contact@phpformbuilder.pro',
'recipient_email' => 'john.doe@gmail.com',
'subject' => 'contact from PHP Form Builder',
'values' => $values
);
$sent_message = Form::sendMail($options);
Second solution: using a custom template with custom replacements
- Create an email template html file in mailer/email-templates-custom/, , for instance named “my-template.html”.
- Create a CSS file for your template in the same folder, with the same file name, for instance “my-template.css”.
- Add shortcodes for the values you want to replace in your template. For instance {registo-embarcacao}
- Set your replacements and configure the options to use your template when you send your email. Here’s a sample code:
// email HTML template placeholders replacements $replacements = array( 'registo-embarcacao' => $_POST['registo-embarcacao'] ); $email_config = array( 'sender_email' => 'contact@phpformbuilder.pro', 'sender_name' => 'Php Form Builder', 'recipient_email' => addslashes(you@your-email.com), 'subject' => 'Contact From Php Form Builder', 'template' => 'my-template.html', 'custom_replacements' => $replacements ); $sent_message = Form::sendMail($email_config);
Everything is detailed in the documentation here: https://www.phpformbuilder.pro/documentation/class-doc.php#sendMail
Is there any bluid in way to send afert submit a reply email to the person using the form?
Yes, you just have to create your email template like I explained before and call the Form::SendMail() function a second time.If you need anything else you’re welcome,
Gilles
Perfect working solution Thanks
Thanks for your feedback.
Can we download the files in zip format? TIA
Hi,
Which files do you want to upload? What for? Please explain your question.
I said after completing a form design can we download the design as zip format?
I assume you mean with the drag & drop form builder?
You can load/save your forms in JSON. No need for zip.
Hello!
Quick question about conditional fields.
Let say I have two select fields.
I want to show a third field if select1 = “something” OR select2 = “somethingelse”
Nesting the conditionals should work as an ‘and’ logic, what about an or logic?
Hi ExP_Team,
“or” logic is not implemented yet, but it should work with this trick:
Add an hidden boolean field to your form, and a script to set its value to “true” when the condition is met.
You can then make your conditional section depend on this field.
If it doesn’t work or if you need more help about this please let me know I’ll then test and give you a working code example
I have used the formbuilder long time a go and will test it again. Also on xampp, but license are 2 times registrated at sites that don`t use it. How can i reset the license?
Hi,
Pleaseemail me your purchase code and I’ll reset your license as soon as I receive your message.
Done, thank you. You are very kind.
You’re welcome
can i create conditional logic and display users results based on their entry after? I mean showing a results that is dependent on what the user filled in. in example:
Form field 1 text: User types in her name Form field 2 yes/no: User types in YES
Result: Text text text blablabla NAME Because user said YES: Show extra text BLABLABLA
And I can immediately show the result to the user who filled out the form?
In other words: I am looking for something like an imprint-generator where users type in if they are a company or not, their data, name website, etc. and then based on those conditions they can type in and select more details. and in the end it will display an imprint based on the settings of the user.
And if i would purchase your script, would you be available for extra charge if i send you 3 of those forms that you “clone” with your script? they are not that long but have conditional logic as described
Pre Sale – Question
- Can I create paged form? We have a very long form and we want to divide it into 3 pages. Is this possible using your builder?Hi,
Yes, you’ll find some live examples here: https://www.phpformbuilder.pro/templates/index.php?framework=bootstrap-5&forms=step
Please not that for step forms you have to use the PHP functions, the drag & drop form builder is not step-forms ready.
Thank you. One more question, we have an existing website. Is it possible to embed the form in our website’s Contact Us page?
Thank you!
Yers, it’s always possible. If you can’t add php code to your contact page you can use Ajax loading: https://www.phpformbuilder.pro/documentation/class-doc.php#ajax-loading
You’ll have to add an empty div to your page, a few JS code, and create your form in a separate php file (which will be loaded with Ajax)
Thank you, another question, where can I find the documentation on how to create a form with multiple steps?
The templates give you the code & the logic. I can help you more than this if you email me your FTP & URL.
Hi, I sent you an email.
Hello, I have a few more concerns.
1. In the email notification. The label is the field name instead of the actual label of the form, Same for the checkboxes and selects, it is showing the option name instead of the option label. How can I fix this?
2. After I click submit, the success message isn’t showing up. It doesn’t look like anything happened. Did I do it right?
I sent my info through the form you sent. Hopefully, you can help me fix it. Thank you.
Hi,
I answered your email, and setup your step form.
- The email is built with the field names => posted values.
If you want to change the names the most simple is to change the field names in the form.
Set your field names properly with lowercase and no spaces ; the ”-” will be replaced by spaces in the email. - Now the sent message is showing, but you have to enable the PHP mail() function on your server. I told you this in my email.
If you need anything else you’re welcome,
Gilles
Hi, This is a pre-sale query. Is it possible to link to the two or more forms? I have two forms where in the second form some fields must autopopulate from the first form. If yes, please document or video how? Thanks
Hi,
Here’s explained how the data is stored in the PHP SESSION, and how you can use these values: https://www.phpformbuilder.pro/documentation/class-doc.php#global-registration-process
You also have examples of step forms which store the posted values, and finally get the whole data at the end of the process: https://www.phpformbuilder.pro/templates/index.php?framework=bootstrap-5&forms=step
If you can’t understand how to work with this you’ll have to ask a developer.
If you need anything else you’re welcome,
Gilles
can this be connected to google sheet automatically?
Hi,
No, you can use an external library if you want, for instance https://github.com/silinternational/google-sheets-php
Dear migli, I bought php form builder yesterday. So far, everything works as it should. Is it possible to change the language for the fileuploader plugin easily?
Best regards David
Hi David,
Thanks for purchase.
Yes, it’s easy, here’s how to proceed:
- Duplicate
phpformbuilder\plugins-config\fileuploader.xmlinto thephpformbuilder\plugins-config-customfolder. This is to prevent your changes from being overwritten if someday you update the package. - Open
phpformbuilder\plugins-config-custom\fileuploader.xmlin your code editor, duplicate thedefaultnode (or another node if you don’t use the default) and give it a name, for instance “my-language”. - In your new “my-language” node, find the captions and replace the values with your language’s.
- In your form code, set the “xml” parameter to “my-language”:
$fileUpload_config = array( 'xml' => 'my-language', // ...etc ); - Reload your form in your browser & test.
If you don’t see the changes, enable the development mode with $form->setMode('development');
If you want you can email me your FTP access and form URL, then I’ll have a look.
Gilles
Hi there I just realised it’s a license per website, and it would cost me too much TBH, so I would like to get my money back. Thanks Jean-Luc
Hi Jean-Luc,
All the items you buy on Codecanyon are licensed for “Use in a single end product”.
Here’s the license details: https://codecanyon.net/licenses/standard
If you use a Codecanyon item for several projects it’s illegal.
If you want refund you can ask here: https://codecanyon.net/refund_requests/new
Gilles
hello, now I am a bit annoyed. On the localhost the demos do not work (problems with the paths). Now I want to install the script on a live server and I have again problems with the license. I deactivated the license on the localhost but it is not accepted on the live server. You can’t work like this. I send you the license and the URL privately. Many greetings
Hi Gilles, thank you for your quick and competent help. The problem with the licence was solved quickly. Very pleasant support! many thanks tito24
Thanks to you
Hi Migli, I can’t use this item, but not because of the product, I just can’t configure it to use. I purshased this by mistake. I thought it used some iframe to put the form on the website. How can we do it?
Hi Fesolha,
You shouldn’t use iFrames, but load your forms with Ajax instead. That’s easy to do.
If you build your form with the Drag & drop, open the Main Settings, then in the Ajax Loading tab, toggle “Enable Ajax loading” On.
After this, when you click the “Get Code” button it’ll give you the code and instructions to load your form with Ajax.
If you need more help you can email me your FTP access.
Gilles
I purchased this by mistake, not yet having understood that this isnt a reusable application. I’m trying to get a refund, as I wont be able to use this for my needs.
Hi,
There’s no reusable application on Envato, according to the Regular license terms: https://codecanyon.net/licenses/standard?_ga=2.118819712.802566032.1694244369-1810709980.1694244369
If you reuse the application you bought on multiple projects it’s illegal.
Additionally, Here’s an extract of Envato’s refund policy:
Neither Envato nor authors are obliged to give policy refunds in any of the situations listed below.
[...]
You bought an item by mistake
I don’t want any trouble with anyone, so if you want refund please ask here & I’ll accept it: https://codecanyon.net/refund_requests/new
Gilles
No trouble at all, just couldnt figure out how to request a return. Nothing wrong with your product, I just didnt catch that what I was buying was limited for use to one site. I haven’t used it on any sites, I couldnt even get it working locally before learning of the limitations.
Thanks for your answer, so you can ask for refund if you want, or I’m available to help you if you want.
PreSale Qs. Is it possible to do CPT submission created by ACF and JetEngine & editing, Also is it working for Profile / Users Editor & Frontend Dashboard
Hi,
I’ve no idea about what is CPT and ACF and I don’t know how your frontend dashboard is conceived.
All I can say is that you can create any form you want and integrate it in any PHP page or with Ajax in any HTML page.
If you need anything else you’re welcome,
Gilles
Hi Migli, as other said before great work done. is there any example how to build a master-detail form? i.e. a form with a customer address and below is listed the list of customer contacts.
Hi,
Thanks for purchase.
I’m not sure how I can help you ; if your customer contacts come from your database you have to send a query: https://www.phpformbuilder.pro/documentation/class-doc.php#database-select
Then loop the records and display them on your page.
Does it answer your question?
Gilles
Hi migli, thx for yiur quick reply. I know and use these selects. Maybe,.”I am missing the forest through the trees” I need a combined form: On top I show a single record of a customer, Name/Address. The customer has different contacts in a separate tabele, foreign key is custormer_id. I need to show a list of contatcs, i.e. name, emai, phonenno, in the same form listed under the name/Addrss of one customer. Here is an example in c# for author and his books: https://www.informit.com/articles/article.aspx?p=1251169&seqNum=9.
Andreas
Hi Andreas,
That’s what I understood, but what you’re asking for is specific to your project, it’s a programming question: you have to select your customer and his contacts, then you can do anything you want with the data you retrieved. That’s the logic, you have then to code.
If you want to send me your URL & FTP I may help you a bit more, but I’m not supposed to code your project for you …
Hi, i’ve purchased php crud generator and i’m trying to use php form builder to create a form with dynamic fields. Please, could you attach me php files from example: https://www.phpformbuilder.pro/templates/bootstrap-5-forms/dynamic-fields-form-2.php
https://www.phpformbuilder.pro/templates/bootstrap-5-forms/dynamic-fields-form-2/dynamic-elements.php https://www.phpformbuilder.pro/templates/bootstrap-5-forms/dynamic-fields-form-2/unset-ajax-elements.phpI’ve tried to make code bymyself but it’s impossible to have it running.
Thank you very much in advance!
Hi,
Thanks for purchase.
You can download all the templates and the drag & drop form builder from here: https://www.phpcrudgenerator.com/documentation/index#php-form-builder
Then if you still need some help please ask, I’ll do my best.
Keep in mind that you have to include conf/conf.php at the beginning of your code as explained in the documentation. (https://www.phpcrudgenerator.com/documentation/index#php-form-builder)
You have to edit the templates the same way to make them work.
If you need anything else you’re welcome,
Gilles
Thanks a lot!!
You’re welcome
I’ve seen the templates folder only contains bs4, not bs5. When i create dynamic field, and submit, form deletes second field and stop submitting. Please, could you help me? Thanks a lot!
My fault, the ZIP file was not up to date.
I just uploaded the latest version, please could you re-upload and try it?
Then tell me if you still need some help
Wow! It works like a charm
Thanks a lot!
You’re welcome