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
1answer
27 views

Submit button inside foreach loop updates all table rows instead of one row [on hold]

I created this simple function to update a row inside a table called wp_todos function update_completed_todos($id,$complete) { global $wpdb; $table_name = $wpdb->prefix . 'todos'; $...
-4
votes
0answers
16 views

ultimate member form not showing [on hold]

I am using ultimate member, and I used the shortcode on the register page but form is not displaying but when I do view page source I can see the form code there.. why this is happening ? here are ...
0
votes
0answers
44 views

Submit the form#post form via Javascript [on hold]

I have been working on a workflow for our lesser tech savy writers. They wanted things very spelled out, so I've created the below meta box and have hidden the publish meta box on an edit post page. ...
2
votes
1answer
21 views

Mail Form in a modal box without plugin

I've builded a WordPress theme based on Twitter Bootstrap 3.x. I've a mail form in modal box. When I click submit button, it returns 404 error page. I also checked for reserved names in $_POST and $...
0
votes
0answers
15 views

Submitting entry to gravityforms web api from angular application

I have a Wordpress installation setup with Gravityforms, and a seperate external Angular application. The Angular application has a contact form and I would like to have submissions from the contact ...
-2
votes
0answers
17 views

help wordpress redirect function

<?php global $wpdb; add_shortcode('calculate','calculate'); function calculate(){ echo' <script> function run1(){document.frm.result.value+="1";} function run2(){document.frm.result.value+="2"...
0
votes
1answer
32 views

Custom forms + Polylang

I am new to Wordpress but I have some knowledge of PHP. I am creating a bilingual site (with Polylang) which has many forms. Some of them are handled by Contact Form 7 but some others have to be ...
0
votes
2answers
24 views

How to update user profile custom fields

I have created custom fields on my registration form, such as 'telephone', using Theme My Login. I have found a way to make them appear in the backend (on the User page) but I can't update those ...
-3
votes
0answers
18 views

Skip passing value in form

Is it possible to skip passing value in form if user doesn't choose something and default value "Choose your color" is selected? <select name="something"> <option selected="selected">...
1
vote
1answer
33 views

How to retain $_POST data when submitting form to custom page

I have written a plugin whose job is to create a custom page with a user subscription form. The form page is created like this: $page = [ 'post_type' => 'page', ...
-2
votes
1answer
29 views

How to make select field selected after reload the page? [closed]

I want this field selectable after submit the search yacht button.But currently it's not selected after submit the button. here is the code : /** * @author Erik Kraijenoord <erik@wmdiensten....
0
votes
0answers
16 views

Sending Messages Back to the Template After Processing?

Is there an "offical" way to send a message back to the template after processing a form using add_action('admin_post') or similar for client-side feedback ? I was thinking of using the $_SESSION but ...
0
votes
0answers
24 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? ...
0
votes
2answers
39 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
0answers
25 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
0answers
22 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
1answer
45 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
83 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 (...
1
vote
2answers
28 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
1answer
40 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
0answers
29 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
1answer
49 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
23 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
43 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
125 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
75 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
138 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
28 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
70 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
88 views

Get post ID from wp_insert_post()

$new_post = array( 'post_title' => $title, 'post_content' => $description, 'post_category' => array($...
0
votes
1answer
53 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 ...
0
votes
1answer
32 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 ...
-4
votes
1answer
37 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
51 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
29 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
0answers
28 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-...
0
votes
1answer
75 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....
1
vote
1answer
63 views

How to create a form and display its content as table in admin panel?

I am new to Wordpress CMS and have been into a problem and don't know how to go about it. The problem is I want to create a form with first name, last name, phone number and a submit button. On ...
0
votes
1answer
117 views

Fatal error: Call to undefined function wp_insert_post()

So I have a form that has makes the action jump to another php page. There my php code tries to upload a post. I get the following error: Fatal error: Call to undefined function wp_insert_post() ...
0
votes
2answers
115 views

File Uploader - Upload without adding to Media Library

I have an admin form for a plugin I am making. However, there are a couple of fields I need to add where the admin need to upload a document or image. When these files are uploaded, I do not want them ...
0
votes
0answers
64 views

Contact Form 7 add custom method and action attributes

I have to add custom method and action attributes for my forms. I have found a related SO post here at -> http://stackoverflow.com/questions/14177844/how-to-change-form-action-url-for-contact-form-7 ...
0
votes
0answers
130 views

Integrating Wordpress with a Codeigniter app using $_POST variables

I'm writing a plugin to register and login to a codeigniter app we've got at the same time as registering and logging in to wordpress. the solution I came up with is to submit the form variables to ...
0
votes
2answers
64 views

Can I make Contact Form 7 change over to a new page? [closed]

I'm trying to set up a form for people to fill in, however I want to split it up into sections so as to not create a long list of different details on just one page. For example: PAGE ONE Includes ...
0
votes
0answers
41 views

Get image url from a form

I am new to Wordpress plugin development. I have some questions related to my plugin. I want to get a image URL from a form at backend of my plugin from user and assign it to a (html img) tag src ...
-1
votes
2answers
44 views

shortcode doesn't work

I made my first WP plugin, it is a contact form - here is the code: <?php /* Plugin Name: Example Contact Form Plugin Plugin URI: http://example.com Description: Simple non-bloated WordPress ...
0
votes
1answer
137 views

Ajax form submit within a Post Metabox

I have a custom wordpress MetaBox assigned to post. I have the function running on the post save_action. However I was wonder if I can get a button inside of the metabox the will run the function on ...
0
votes
0answers
23 views

Associate multiple Database ID's

I am using a form plugin in a multi-seller woocommerce environment where each user (seller) utilizes this form which the values are stored in form's DB tables. My problem/question is: when a seller......
0
votes
1answer
42 views

Form and database, plugin development

I'm developing my first plugin. It creates directories and save the path, level (if it is a subdirectory of other created directory) and name in a custom table, created at the activation. The plugin ...
0
votes
1answer
56 views

$POST variable is empty in receiving php add-on function but can be seen by jscript function

I have created the following code to explain my problem. Firstly I have a shortcode function which accepts a user input and calls another form: <?php add_shortcode('quote_system', 'qt_system'); ...
0
votes
0answers
68 views

Featured image does not work with images on a post at the frontend?

[Found a partial solution] I need a little help with this problem. I don't know why on my videos the theme uses a thumbnail and set it as featured image but for images it does not. When I install a ...