HTML forms are used to pass data to a server. An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.

learn more… | top users | synonyms (1)

0
votes
0answers
20 views

Pass the data from Custom Form in wordpress

How can I get the value from custom form in WordPress and stored into teh database? Here is my form. I used the bootstrap validator for this form. Now, what do I have to do to get data from this form? ...
2
votes
1answer
684 views

WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)

I would like to use the WP native login/register/restore password/.. functionality, but display pretty URLs instead of wp-login.php I've been looking at the core code and noticed that most login ...
-1
votes
0answers
27 views

How do I get multiple Gravity Forms to post to the same database fields? [on hold]

I have multiple email sign-up forms on some of my pages (in the header, some in the body, another in the form of a sliding pop-up). From my understanding, I shouldn't be using the same form because it ...
0
votes
2answers
6k views

Accept AJAX call with serialized form data

I'm trying to pass a wordpress plugin some form data via ajax and it works just fine, unless the form data is serialized, then the server responds with an error message. I'm stuck with this for days ...
0
votes
2answers
4k views

Dropdown List Won't Display Selected Option After Submit / Refresh

I created a user form on my index page which allows the site visitor to re-order my post loop order based on either most recent posts or highest rated posts. The form works perfectly, the problem is: ...
0
votes
1answer
593 views

Update user meta on custom wordpress form and redirect

I have a fully functioning custom wordpress form that updates the user meta when they are logged in, however when I submit it just reloads the same page I am on, I am trying to get it to redirect to a ...
0
votes
2answers
25 views

creating form for wp_remote_post

i'm using code from the wordpress codex: (this is the generic version, my code is working though) $response = wp_remote_post( $url, array( 'method' => 'POST', 'timeout' => 45, '...
0
votes
2answers
781 views

Embed IPB forums to wordpress page

I have a community that is really forum driven, and after messing with most major content management systems, I've really liked Wordpress for Its front news pages/blog posts. The issue that I'm ...
1
vote
4answers
6k views

Pass data from one page to anothe file/page in wordpress

I have my custome theme in wordpress.This is the path of my custome theme. C:\wamp\www\wordpress2\wp-content\themes\sscy1002\sscy1002 I have created a Page in wordpress which contains some form ...
0
votes
2answers
770 views

How can I redirect this contact form to a specific permalink

I'm converting a HTML site to WP for a client and they have a simple contact form in place. If the submission is sucessful it currently, in it's HTML form, sends them to thankyou.html but I want to ...
0
votes
1answer
617 views

How to allow specific extensions and file size to wp_mail attachment?

I am trying to create a form with an attachment option that will be sent to an email when the form is submitted on a wordpress site. My codes work fine and it sends email in a HTMKL table format to ...
0
votes
0answers
14 views

Problem uploading multiple images to a custom field in a front-end form

I'm having trouble with a portion of a front-end form that allows users to create posts in my custom post type. I want to create an image uploader that will allow the user to upload multiple images. ...
0
votes
2answers
607 views

Creating a custom search form

I am creating a custom search form which will search a custom post type called recipes. and it has a load of taxonomies. Now I output these taxonomy's terms into checkboxes which are grouped by the ...
0
votes
1answer
41 views

redirect to uploaded (wordpress) post after form submission from front-end

I'm using the following code to redirect the page, in order to prevent re-submission of the form. And it does fine job doing redirection to the homepage. And my website is based on the WordPress, ...
0
votes
2answers
45 views

Refresh page after form action

I've a listing post page where all posts are shown. On each post's row I can perform actions like delete, archive etc. So imagine that: I have an "archive" button; I push on it and I get a modal (...
0
votes
0answers
17 views

Init action and refresh page after form action

My problem is that I can't refresh the page after a form action into a loop. In my case I have a listing post page where I can delete, archive, deliver posts through a modal form, row by row. After ...
0
votes
2answers
646 views

Calling custom PHP from a HTML form post action gives 404 error

I have a form: <form name="customer_details" method="POST" onsubmit="return form_validation()" action="../customer-details.php"> I placed the PHP file in my theme folder, but WordPress ...
0
votes
2answers
2k views

Storing textbox values in Database

I am new to WordPress but I am good with PHP programmings, if I wanted to get value from the textbox and store it in the database in WordPress can I do? for ex form1.html <form name="form" ...
1
vote
2answers
884 views

Form isn't inserting data into database with ajax plugin

I've been working at this for weeks without success. I've figured out problem after problem with the code, but none of the corrections seem to fix my core problem. The form doesn't insert anything ...
1
vote
2answers
22 views

How to retain the values from dropdown category lists after wrong form submission?

I can't figure out the the code for - How to retain the values from dropdown category lists after wrong form submission? Any suggesstions, thanx in advance. <select class="selectpicker btn-block" ...
0
votes
2answers
664 views

How to send form values from the script in functions.php and not from the form on my website?

I have a form on my website and depending on if the user check paypal or wire-transfer the form action should always go to functions.php where I have this simple check at the end of the file: if ( ...
0
votes
1answer
546 views

upload images on front by user using form

I'm using a form on my website using wordpress to allow users to create posts. It works perfectly fine, I'm abble to assign the posts to a custom post type, add Advanced Custom Fields, content, tags......
0
votes
2answers
5k views

Inserting data into custom tables

I am trying to create custom input tables to send data into custom tables on the wp database. I cannot get my script to do anything. The user will enter a type of liquor, like vodka or whiskey, ...
0
votes
2answers
2k views

How to append new form elements in “Add New” form of Users in Wordpress admin panel?

I'm developing a WordPress plugin and I want to append some extra form fields in add new form of Users section inside admin panel without editing core files. Can somebody help me in achieving this.
0
votes
2answers
3k views

Conditional two level dropdown filter for custom post type

I have set up a custom post type and taxonomy. The post type is called Local Services and the hierarchical taxonomy is called Regions. The Regions have child categories called Areas. I have set up a ...
0
votes
1answer
481 views

How to use wp rewrite to hide form action url?

I have a widget that I'm making that builds a multi-step form which retrieves xml data from a third party plugin (http://xmlplugin.com/geoquote.php). While this plugin is available for use already it ...
1
vote
2answers
624 views

How to add a onclick attribute to a list of checkboxes?

I have this array for checkbox: array( 'name' => __('Latest Product',''), 'desc' => __('Select if you want to display latest product',''), 'id' => $prefix . 'checkbox'...
0
votes
1answer
30 views

Acessing WP functions in form submission handler

I have a form which is embedded in a custom post type. The form action points to a PHP file that sits in my mu-plugins directory: <form action="http://www.foo.com/wp-content/mu-plugins/FormCode/...
0
votes
1answer
2k views

Using AJAX to run SQL statement and populate dropdown

I am trying to create a search where the user selects two different bits of data from the database and it then prints some results that meet requirements. I know I need to use AJAX, or something ...
0
votes
0answers
28 views

Custom database tables for each forms

I'm wanting a forms functionality, where the form creator can allow the use to create custom tables. Like each form having a separate user specified table and user specified column name as per the ...
0
votes
5answers
33k views

Custom form that store input in database

I have never used WordPress before, but have done a lot of programming. But what is the normal way of making customs forms? I need to create a form where a user fill some input fields and on submit ...
0
votes
1answer
43 views

Get wp_current_user_id using PHP and MySQL

awesome people of the Stack Community! Like the newbie coder I am, it took many hours but at last I got: a HTML form inside wordpress -> to submit value to MySQL database -> and then store the ...
0
votes
1answer
9k views

Create a registration form with a PayPal checkout fee? [closed]

My client is looking to start taking online registration for their many conventions and events. Previously they handled this all offline with PDF documents and in person payment. I'm looking for ...
0
votes
1answer
19 views

Modifying the wordpress login page and then referencing it with a shortcode problem

Both parts are working great separately. I have made the shortcode for the login form with: //register new shortcode add_action( 'init', 'my_add_shortcodes' ); function my_add_shortcodes() { ...
0
votes
0answers
36 views

Page Not Found on Custom Options Form submission

This is an odd one! I am developing a plugin, which includes an options page, using the Settings API. The page contains table which represents an array of "name" => "url" type values to be ...
1
vote
1answer
95 views

Upload Image in a Wordpress page using PHP

Hello awesome people of SE! :) Okay, so this is a little far-fetched but I'm trying to get a HTML form with a PHP upload script to work inside a Wordpress page. I can't use a plugin. It's supposed to ...
0
votes
1answer
53 views

How to implement post/redirect/get pattern on contact form

I have a shortcode which generates a simple contact form. The form posts back to the same page where its processed, validated and sent via email. All works well, however refreshing the page resubmits ...
0
votes
1answer
88 views

How to Submit Post Via cURL & PHP

Thanks for reading. I'm trying to submit a post via PHP. I'm filling in a large number of posts from a good amount of data I've scraped so I need this to be automated. I don't have the time (or ...
0
votes
1answer
21 views

Login_form add to top of form rather then bottom

I have added a 3rd field on the login page, but it shows at the bottom(underneath password) while I would like it to show above Username. How can I manipulate the order of fields? This is the code I ...
1
vote
0answers
101 views

Edit Custom Post Type on Custom Admin Page instead Post Admin

Background: I am still quite fresh to coding and WordPress. For me the best way to understand, is to work on a specific project. Project: I want to build a Customer Relationship Tool for WordPress ...
0
votes
0answers
43 views

Frontend Post with JQuery AJAX to Php Issue

My problem is the following. I'm trying to make users publish custom post_type by frontend through a form like this: <form id="msform" enctype="multipart/form-data"> <fieldset id="...
0
votes
2answers
68 views

Get post ID from wp_insert_post()

$new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_category' => array($...
0
votes
1answer
31 views

Form not working as it should in WordPress, but in a normal HTML site it does

I am in need of help. I have a website, which has a form to fill out (simple form, that calls a PHP function and some other JQuery libraries). It is made in an ordinary HTML file, and works well on ...
0
votes
1answer
48 views

Why doesn't a form need an 'action' with a plugin that uses the post data?

So I'm still rather new to WordPress plugins. And there's one thing that I'm not sure of. I'm building a front-end form that allows users to post posts. In this guide down below there's a plugin made ...
-4
votes
1answer
32 views

Is it possible to set different payment gateway on each Gravity Forms form? [closed]

I run a Wordpress site in Australia involving credit card payments. I've been using eWay payment gateway for a while, now I want to introduce Stripe as well to my forms. I have multiple products, each ...
0
votes
0answers
46 views

How to use pre_get_posts filter from frontend user input (GET variables) or do_action

I'm trying to allow users to filter certain pages based on the input from a dropdown. <div class="filter-by-calories"> <h3 class="filed-title">BROWSE BY CALORIES</h3> <...
0
votes
1answer
1k views

Creating wordpress user registration form

I am having a form page called Test Form with this form : <div id="container"> <form action="wp-content/themes/max-magazine/TestForm.php" method="post" name="myForm"> User <input type="...
0
votes
1answer
27 views

Understanding the workflow of form creation plugin

I want to create a simple form creation plugin(that is specific for my CRM, that's why i need to create one). The idea is having a "add input" button which lets me chose the type of the input(text,...
0
votes
1answer
61 views

contactform7 remove tags with “wpcf7_autop false” from functions.php

i want to remove those <p> and <br/> tags from my contactform7 forms. now they have this wpcf7_autop which can be set to false when inserting: define('WPCF7_AUTOP', false); to wp-config....
0
votes
0answers
27 views

How can i implement “select from existing tags” for front end posting?

Hy,on the bottom of Tags: I want to add something to be able to select from existing tags. Something like on backend "Select from the most used tags" Here it's html and php code : case "window-...