How to integrate a custom form and add/edit/delete on wordpress - php

i want to create a custom form with some fields that i could add/edit/delete on database
how integrate my form with wordpress?
do you know a website ,that have a tutorial about this process ?
thanks

There are plugins that allow you to create custom forms (cformsII), and with some additional PHP knowledge you can retrieve the data using their API. I found this tutorial that quickly goes through installing, configuring and retrieving data from this plugin. That same page also listed some additional forms plugins that are worth looking at.
Another option is to do this using HTML and PHP without the use of a plugin. The following link will give you some insight in how to start and some code that can get you started:
http://www.paulmc.org/whatithink/2009/02/05/using-wordpress-templates-to-create-forms/
Note: There is a plugin called Formidable but only the Pro version allows you to easily retrieve the data from the database.

This is a really involved question, so it shouldn't be asked here.
P.S. Not specific to WordPress but http://teamtutorials.com/web-development-tutorials/php-tutorials/inserting-data-into-a-mysql-database-using-php

Related

Enable custom database table fields in Wordpress Elementor

I have an addition database table that was created manually not generated via Wordpress. I want to integrate this table into Wordpress so I can use within the dynamic fields options in Elementor.
Please can you advise the best way to to this?
I have found a plugin called metabox.io , but not sure how to do it via that either. I can see options to create custom tables via meta box, but not integrate manually tables.
Any suggestions appreciated.
the best way i can think of is to create a custom wordpress shortcode.
in the end you should have something like [custom_table id="1" column="db_column" condition=""], you will be able to use this shortcode in elementor dynamic fields.
i do not know about the plugin you mentioned. if you're not familiar with wordpress development you should hire a developer to do this for you.

build form in joomla and dispaly the list of content

I want build a form in joomla 3.3.1 and display content of form in list with several pages such as link below:
http://alkafeel.net/persian/zyara/view.php?pageNum_Recordset1=3122&totalRows_Recordset1=158555
but I have problem because
I don't find good form builder for joomla 3.3.1
i don't know whats the html code for display list of content that user submit
How can put the search box for search between displayed content
and also I should say I install rsform pro extension v1.49.7 but don't work correctly infact no one of options work
We are using Chronoforms for our forms. A great component with lot's of plugins and features. You are also able to access the formdata before submit. You can add custom code (html/php/js) to your forms and it's extremly flexible.
Just give it a try ;)
BTW: rsform should also work, it's a great component too! Maybe there is something wrong with your include of the plugin files or with your template.
All components add some scripts to the header with the given Joomla-function. Maybe there is something wrong with your configuration.

Is it possible for a Joomla Form plugin to create a table and save form data to that table?

I am working on creating a Joomla based web service that is easy to use. The end goal is to allow customers the ability to manage the site from the front-end with no back-end (administrator) access. To accomplish this task I am using K2 that has existing front-end editing. Then behind the scenes we will provide technical support. Essentially, non-techy customers can easily manage their site, with us managing the tech side of things.
I need to provide a few forms (Contact, Event registration/payment and Donation payment). These forms also require that certain aspects of the forms can be updated via the front-end leveraging K2. (eg. The email address to send form submissions to.) With most forms components this can be done easily from the admin panel, however this is too complicated for non-techy customers and means we would have to provide admin access instead of just front-end. Not a good solution.
I have created a K2 contact Form plugin that will allow a customer to update where the email is sent on submission, when logged into the front-end with correct permissions. So far so good. I chose a plugin to accomplish this so we could leverage the existing front-end editing.
The issue I ran into is how to make my plugin create a table, preferably on install, as well as save form data to that table on successful submission. I'm not sure that this is possible using a plugin and have not found any documentation or sources mentioning how to accomplish this task.
I was hoping someone may be able to confirm either way if this is possible? Any suggestions, comments, etc would be greatly appreciated.
While installing plugin you can create DB tables, Its not a big deal create the SQL file with proper table query and set that inside your XML file.
Also you can create a forms(with many fields) inside your plugin file, But the problem is you should have any components controller and model related to this form submission task. Bcoz form submission you cannot handle inside plugin file, it should required a controller and model files.
So basically your plugin have related components then you can achieve it with form action like below.
<form action="index.php?option=com_yourcomponent&task=your_controller.your_function">
For creating DB table while installing plugin check this link
Hope its helps..

Adding to a plugin with wordpress

I'm having major problems with this. Basically, I need to add a "url" field to the event management plugin with wordpress. My client wants to be able to add a url to their event so it can be clicked and viewed for more information on the event. I've looked through everything and im having problems understanding the wordpress file structure. I tried to add my own field to the event editor, database and front end but i dont know where wordpress posts the data to so i cant receive the variable. If i could get the variable, i could probably figure out how to use $wpdb relatively simply. but for that matter, i dont know where i should use that. where is the file that makes all those calls? i shouldnt have a problem getting the data from the database.
Edit
My problem, as described, was solved by installing another plugin called PODS. the only solution to adding functionality to a plugin, as in other fields, is to write your own plugin (as far as im aware). PODS solved my problem. It allowed me to add another field to the front of the event management form and saved it to the database. I still had to retrieve it from the database and display it on the front myself with php, but it was a much easier task than i expected it to be. If anybody wants to add extra fields to a plugin in wordpress, PODS is what i'd suggest. It's also free.

Implement a custom feedback form into magento

Can someone please help me with implementing a customized form into Magento?
I have created a PHP form that works outside Magento that collects user data and allows them to upload a file. I am clueless as to how to get this functioning in the Magento environment. We are already taking advantage of the internal form with a contact us. This one is a feedback form to collect user data.
I have been digging around in Google for a couple of hours now and the only scenarios are how to get aspects of their forms working, not how they got it in there in the first place.
Your responses are appreciated. I am even open to you just giving me the right link to look at.
There is a good article about how to create a custom form in magento: Create custom form.
It describes how to create a route in config.xml, how to create the controller php (where you can handle the post action), and an example of the template file.

Categories