The plugin isn’t working anymore. Can it be a php-version problem?
]]>shortcodes
You will configure the form using shortcodes
The available shortcodes are:
* [db_form] – Encloses your form.
* [input]
* [mail]
* [hidden]
* [textarea]
* [radio]
* [select]
* [checkbox]
* [submit]
Each of those shortcodes, except [db_form], can handle specific attributes. Those attributes are:
* label
* value
* name
* required
Special attribute for [radio] and [select] is:
* description
label
This will be the label which will be returned infront of input fields, behind radio buttons and checkboxes and on the submit button
Any caption can be used.
Default: NULL
value
Specify this attribute to either give input fields a standard text or to define the submit values of radio buttons and checkboxes
Any caption can be used.
Default: NULL
name
The name attribute specifies in which column in your mySQL database the value should be submitted.
Any caption can be used.
Default: NULL
Important:
The name-attribute needs to be identical with the column name in your mySQL database
Note:
Don’t use spaces neither within your name-attribute nor as your mySQL column name.
This plugIn is not tested with spaces within the name-attribute.
required
Use this attribute to set whether the field is required or not.
Takes only true and false as values.
Default: false
description
This attribute can only be used with the [radio] and [select] shortcodes.
It can be used to put a text in front of your radio buttons / select dropdown.
Default: NULL
shortcode example usage
example 1
Form to submit firstname, lastname and an e-mail adress.
Firstname and e-mail are required lastname isn’t.
E-Mail field will have the default value “[email protected]”
[db_form]
[input label=”Firstname *” name=”sql_firstname” required=”true”]
[input label=”Lastname” name=”sql_lastname” ]
[mail label=”E-Mail *” value=”[email protected]” name=”sql_mail” required=”true”]
[submit label=”Send!”]
[/db_form]
example 2
Form to submit the answer to 2 questions and an e-mail adress.
Everything is required.
[db_form]
[radio description=”Choose your gender. *” label=”Male;Female” value=”m;f” name=”sql_gender” required=”true”]
[radio description=”What’s the right answer to 2+2? *” label=”3;7;4;2″ value=”3;7;4;2″ name=”sql_math” required=”true”]
[mail label=”E-Mail *” name=”sql_mail” required=”true”]
[submit label=”Transmit data.”]
[/db_form]
example 3
Form to submit 2 text fields and the value of a checkbox.
Only the checkbox is required.
[db_form]
[input label=”Your location” name=”sql_location”]
[input label=”Your destination” name=”sql_destination”]
[checkbox label=”I’d love to use your plugIn” value=”yes” name=”sql_use” required=”true”]
[submit label=”Submit my choice.”]
[/db_form]
Note:
The checkbox-shortcode can also work as an enclosing element. That’s especially useful whenever you want to use a lot of code or even HTML markup behind your checkbox.
[checkbox value=”yes” name=”sql_use” required=”true”]I’d love to use your plugIn[/checkbox]
mail message examples
You can set up custom mail and mail confirmation messages including the values submitted by the frontend-user.
To do so you have to use the field’s name-attribute enclosed in “%”.
In addition to that you can use full HTML markup.
See the examples below.
example 1
Corresponding to shortcode example 1
Firstname: %sql_firstname%
Lastname: %sql_lastname%
E-Mail: %sql_mail%
The mail you receive will look like this:
Firstname: user’s firstname
Lastname: user’s lastname
E-Mail: user’s e-mail
example 2
Corresponding to shortcode example 2
Your user’s gender is %sql_gender%
and he/she believes that %sql_math% is correct.
Contact him/her by mail: %sql_mail%
The mail you receive will look like this:
Your user’s gender is m
and he/she believes that 4 is correct.
Contact him/her by mail: [email protected]
After installing the plugin and setting up a form I had to realize that the sites providing the shortcodes and documentation are dead.
The plugin seemed to provide the functionallity I was searching for.
Not knowing shortcodes this plugin is completely useless.
Is this still under construction? We need CSS
]]>I was wondering if there is any possibility to register people who filled in the form automatically.
Now, the data is stored in the database and it’s sending a thank you email.
I want to send in the same email a username and password so people can login afterwards. Is there any chance to get this?
]]>Hello.
I would like to upload an image using the form. How can this be achieved?
Thank you.
]]>Hello
I want to have a select field with 2 options. How can I do this? Can you post an example, please? I cannot find it in the documentation.
Thank you,
Laura
Hello.
This is a great plugin. Is there an option to add date picker to the form?
Thanks.
]]>Hello,
Is there any way of setting the size of the textarea or input fields from within the shortcode itself?
Thank you – love the system
Andrew
]]>Dear valentinalisch,
I am a beginner to wordpress and therefore, I’m struggling with how to get your db-form up and running. I have followed all of the installation instructions. Though, I left the DB Table field empty, as I wasn’t sure whether that was mandatory.
I simply don’t know how to go from installing the form, per your instructions, to getting the form onto my website. Do I need to modify my style CSS and then insert your shortcodes into an area of my website (ie, in my scenario, I believe the best place to put the form is in the footer)?
I’m looking forward to using your form, once I can get it up and running.
James
]]>Hi,
thanks for your cool plugin!
Would you perhaps consider adding another shortcode or shortcode option, that automatically encrypts the input with MD5? Would be very useful for passwords for example.
Kind regards
]]>Hello,
I am sing the IronBand theme version 1.4. After installing the db form plugin and activating. I go to the DB Form settings and receive this error message:
“Folder “db-form-assets” does not exist. Please create it inside the wordpress plugin directory.”
What does it mean and how do I correct it?
]]>Hello,
I am sing the IronBand theme version 1.4. After installing the db form plugin and activating. I go to the DB Form settings and receive this error message:
“Folder “db-form-assets” does not exist. Please create it inside the wordpress plugin directory.”
What does it mean and how do I correct it?
]]>Here is my form, hitting submit is not storing the data in the database table. The table exists and the connection settings are correct
<table>
[db_form]
<tr>
<th>First Name*</th>
<th>Last Name*</th>
<th>?</th>
</tr>
<tr>
<td>[input name="firstname"
required="true"]</td>
<td>[input name="lastname" ]</td>
<td>?</td>
</tr>
<tr>
<th>Address</th>
<th>Phone</th>
<th>Email</th>
</tr>
<tr>
<td>[input name="address" required="false"]</td>
<td>[input name="phone" required="false"]</td>
<td>[input name="email" required="false"]</td>
</tr>
<tr>
<td colspan="3">[submit label="Register"]</td>
</tr>
[/db_form]
</table>
]]>
I’m using this plugin and I was wondering if you could add a security feature to prevent spamming, because as far as I can tell, there’s nothing stopping a bot from filling a db with junk. Is a captcha system out of the question?
On another note, I haven’t looked at the code yet, but I’m going to venture a guess and say that the inputs are being sanitized before inserting them on the db, right?
]]>Hi there,
First off, thanks for your help with my other two requests. I have the plugin working fine, it’s just formatting now.
Is there a way to get each input type on the same line? I have two select inputs and a radio option but would like them on the same line.
Is that possible?
]]>Hi,
My form does not send confirmation e-mails and I am unsure as to how to change this.
I have inserted my e-mail address as “[email protected]” in the Admin DB form section, under “General Setup.”
After form submission, I receive the entries in my database but get my error message for confirmation delivery:
“This will be a visible notice if the plugin is not able to send out your confirmation mail.”
Here is my code:
[db_form]
[input label=”Firstname *” name=”Name” required=”true”]
[input label=”Lastname” name=”E-mail” ]
[mail label=”E-Mail *” value=”[email protected]” name=”Address” required=”true”]
[submit label=”Send!”]
[/db_form]
Thanks
]]>Good Morning,
Thanks for solving my previous question. Is there an option to choose a dropdown menu input for the form?
Any plans for the future?
Thanks
Chris
]]>Hi,
Yesterday the documentation site was up and running, as of today I’m getting a 404 error. Please fix this, I was just about to use your plugin!
Thanks
Chris
]]>Would be great to be able to set something in either the settings page or on each shortcode to not display the table tags or switch to div tags instead.
If you need help to add this feature or the other one I mentioned, let me know and I’d be happy to do the leg work.
Perhaps the plug-in could be posted to github, so I can create a fork of it?
]]>It would be great to be able to use hidden input types.
I’d like to use this to be able to know what page the user entered the data on.
]]>Will you be adding a memo field soon? We need some fields that are longer than the standard short answer fields. Is there a way to do this now?
]]>I’m trying to use some different forms in my site using db_form but I’m having problems fetching the table in the database.
This is the error I get: 1062 : Duplicate entry ‘0’ for key 1
because I’m filling up the table from two forms. But I don’t see how can I set two or more tables in the plugin settings.
This is all new to me.
Thanks for your help.
]]>