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
6 views

Align form elements with css

I am working on a form on my webpage: http://www.xn--l-klubben-k8a.dk/opret-egen-oel/ I would like the the box with the text that says "Kommentar til duften" to align with the two boxes on the right, ...
0
votes
3answers
22 views

Dealing with html forms

I want to work with html form but i cant understand the Action method and when we need to use it. For example found this code on w3schools: <form action="action_page.php"> First ...
0
votes
0answers
6 views

WooCommerce - Modify “Edit Address” Page Form Field Order?

When you login to WooCommerce as a customer and go to My Account > Edit Billing Address or Edit Shipping Address link, it opens the edit address form page and uses the same page template called ...
0
votes
1answer
23 views

form submission problem

I made this little code to update user info, not meta fields, but it crashes the php. It doesn't execute the wp_update_user, don't know why. Am I missing something? $user_ID = $_POST['ID']; ...
-1
votes
0answers
4 views

site migration - contact form edit [on hold]

I'm currently a free user of wordpress, and I would like my contact form output to be a cleaner format. When someone fills in my contact form, it comes out jumbled and with no space between questions. ...
0
votes
0answers
21 views

Fill form from Dropdown

I've a dropdown that have bunch of contacts that I populated from my custom post type and I also have a <textarea></textarea> that I want to fill from my dropdown when an option is ...
0
votes
1answer
20 views

How to make caption field required in media library?

Hi, my question is easy. I don't know how to make the caption's textarea required for user. Is it possible to do this? Thank you.
0
votes
1answer
21 views

form $_post action value gets truncated after it passes through two forms

There are three pages page1, page2 and page3. When I press submit on my first form on page 1 my group name field can be catched with $_POST['groupname'] in the destination page but in the page 2 I ...
0
votes
0answers
14 views

Passed variable gets undefined variable error on insert on next page

I am passing a variable with $_POST to another page and on the destination page I want to perform an insert operation and want to use that passed value . The variable "$mygroup" is coming from a forms ...
0
votes
2answers
16 views

Accessing values entered via form - try again

I have entered a form element into the page contents editor in wordpress. form action="/home4/stevekeo/public_html/wp-includes/testforms.php" method="post"> ... I want to use the selected value, and ...
0
votes
0answers
13 views

Accessing values entered via form

I have entered this form element into the page contents editor in wordpress. <form action="/home4/stevekeo/public_html/wp-includes/testforms.php" method="post"> <input type="radio" ...
0
votes
1answer
38 views

submit the form to same page

I have a simple form , all I want is to submit the form to same page. I have tried reading other answers including action="" - wordpress says Oops! That page can’t be found. action="#" - wordpress ...
0
votes
1answer
26 views

Nonce fail after second submit attempt

I am refactoring my plugin that resets the WordPress database tables back to their defaults and came across an issue. The form submission itself works fine. However, after the first submit, and if ...
-1
votes
0answers
10 views

How to add custom fields to a form?

How can i add simple text input custom fields to this kind of front end submission form? The code <form id="new_post" name="new_post" method="post" action=""> ...
1
vote
0answers
8 views

Make a form that will send email to all the authors in selected category

Is there a way by which i can make a contact form in which user can choose a category from a drop down list and write a message. Then all the authors of the selected category will get an email with ...
0
votes
0answers
19 views

how to send email with image attachment?

<form action="" method="post" enctype="multipart/form-data"> <pre> <div style="margin-left:0px;margin-top:15px;border:1px solid #989595;"> <label>Title ...
0
votes
0answers
21 views

Displaying errors on the front end from my plugin

I am creating a plugin that has a frontend form, which in turn has some validation.. Errors if validation fails and success if it passes. I have tried everything and can't get messages to appear on ...
0
votes
1answer
30 views

How to set up an auto delete post?

I want to create a form in which when a front-end sets a date and on that date the post gets automatically deleted. Is it possible?
-1
votes
1answer
51 views

How to add contact form instead of checkout

I want to delete the checkout and add a form instead. So instead of checkout it will be a form which can send an email with information from the form (Contact + Items from the cart). Exactly like this ...
0
votes
0answers
15 views

Submit form in admin from my plugin

Helle all , I want to create custom form in my plugin in admin , and process the parameters from my function . How can do that ? Thanks.
0
votes
1answer
27 views

WP_Filesystem usage within a block of code

What i am trying to do is to have this function working within my plugin block of code without having it as plugin on it own. My current and working solution outside wordpress is Save contents ...
0
votes
1answer
125 views

Add form fields dynamically on button click

I am looking forward to create a form section on click of a button click. Say I want to add a new seller agent information section as many times I want to on click of + button. The seller agent ...
0
votes
2answers
60 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
0answers
9 views

how do i use user_has_cap hook to restrict access to some fromidable forms?

I would like to restrict access for 3 users to access three specific forms, so one form each and be able to edit it; Without seeing other peoples forms. how can i achieve this? This is how far i have ...
0
votes
1answer
48 views

Custom form handling in WP.. the correct way?

What is the best way to process a form in WP using correct design patterns? I am finding a lot of outdated and inconsistent information online and the way I am doing it now is not sustainable. At the ...
0
votes
2answers
47 views

A function that will remove HTML <div> and </div> tags from a string?

I need a function that I can use that will remove <div> and </div> tags from a string. I have tried esc_attr(), and even wp_strip_all_tags() --- none of them work. They all leave the ...
-1
votes
1answer
46 views

How to develop an extension for a simple form post and post back? [closed]

I need to develop a plugin/widget or any kind of extension for WordPress that is a like a static page and is like a Form. In this page I have a form with some input fields that is submitted to server. ...
0
votes
2answers
273 views

Show success or error messages in Ajax response to Wordpress custom registration form

I have this custom form inside a Wordpress page template <?php if(!is_user_logged_in()) { if(get_option('users_can_register')) { if($_POST){ $username = ...
0
votes
0answers
15 views

How to make guests able to add fields to a form at the front end?

Is there any way (maybe a plugin!) to let users add more fields to a submission form at the frontend? I have a form on my wordpress website by which guests/users can submit papers to the website. I ...
-1
votes
2answers
39 views

Plugin Beauty Contact Popup Form with while loop

I have installed the Beauty Contact Popup Form Wordpress Plugin on my website, and want to use the raw source code (or a better way to access the form) in a mysql_fetch_array loop like this: ...
0
votes
0answers
50 views

Dynamic form variables for post meta

I am trying to create a dynamic form in the wordpress admin where I can add a line and still be able to process the variables into the database as post meta. I've done quite a bit of research and ...
0
votes
0answers
17 views

Validate a form from metabox input for making a custom username/password protected page

I'm trying to make a page username and password protected. I created a metabox and a form. Metabox is working well. I want that if user types the true username and password, page content will show up. ...
0
votes
1answer
25 views

How to have multiple instances of the same taxonomy in a search form

I'm trying to have two separate search fields for tags on a search page on my Wordpress site, but it seems have a duplicate instance of a taxonomy breaks the search functionality. <form ...
0
votes
1answer
93 views

Using AJAX to return search form results

I'm trying to take user input from a search form, build a query based on user input, and then return relevant posts using AJAX. Right now, the form builds the select dropdowns properly. The form ...
0
votes
1answer
59 views

I created a custom form in HTML/CSS and now I need it to submit … should I create custom PHP or is there a plugin I can use?

I'm new to WordPress development and any advice would be appreciated! I have been a front-end developer for a while and have always handed off forms I created to a back end guy or gal for them to ...
1
vote
1answer
136 views

Can't trigger an AJAX function with a submit button in the dashboard

I'm writing a WordPress plugin. My plugin has forms that post data to other pages generated by my plugin within the WordPress dashboard. I am trying to create an AJAX function that is triggered when ...
0
votes
1answer
46 views

Reason action hook won't work with update_post_meta from frontend form? Alternative?

The code below works when I am inserting a post/using add_post_meta when submitting a form. The page refresh is flawless (see How can I fix a slow redirect after form submit from frontend (no ...
0
votes
1answer
58 views

How can I fix a slow redirect after form submit from frontend (no plugin)?

Below is the code I'm using for my short-coded form and to add the post. Here's a basic overview of the problem I'm trying to remedy: -This form is displayed on the page at /addmember/ -On this ...
0
votes
0answers
9 views

Using Woocommerce, what would be the best way to create a search form similar to the one in the following website?

http://dinarholidays.com/tour-and-transfer-only-airport/ (under "Airport Transfers") The results would be products within a "transfers" category.
0
votes
1answer
11 views

Is there a function to search for a wildcard value when calling a shortcode?

I'm using a plugin to generate a form and rather than inserting the form on to the page using the content editor I'm adding it directly to my template. The problem is that on my local version the id ...
0
votes
0answers
46 views

Conditional forms with wordpress ajax

I'm creating a wordpress megamenu plugin, i've setup the walker and all frontend things But stuck in the backend i changed some of the walker class <?php /** * /!\ This is a copy of ...
-1
votes
1answer
38 views

Build a Boat Form Plugin [closed]

I am putting together a quote for a custom wordpress website for a client that specializes in the Pontoon business. I am fairly familiar with Wordpress, HTML, CSS, and a very basic JS. The client ...
0
votes
1answer
45 views

Is Post-Form Resubmission somehow prevented in Wordpress 4.2.2?

I'm developing a Wordpress-Plugin where I add some forms to the wordpress admin. Usually when I'm testing the processing of form data, I fill in the form once and then just reload the page to send the ...
0
votes
1answer
21 views

Show the submitted values in the form when validation fails

Currently I do: $options = get_option( 'jons-plugin-options' ); echo "<input id='jons-plugin-options[field-two]' name='jons-plugin-options[field-two]' size='4' type='text' value='" . ...
0
votes
1answer
247 views

Custom Wordpress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB

I'm building a little form to let users update their contact information outside of the vanilla Wordpress user management systems. I plan to use a simple CRUD setup and throw in some sanitation. I've ...
-1
votes
1answer
147 views

Contact Form 7 checkbox to add a new class to a div

I am using the plugin “Contact Form 7” for WordPress and I’d like to customise the styling of a form. So at some point the form contains a couple of checkboxes and the code generated by the plugin is: ...
0
votes
1answer
22 views

Wordpress tabindex Order

I created a form (through Contact Form 7, although I don't think that makes a difference here), and I believe Wordpress is causing some tabindex issues. I set field 1 to tabindex of 1, field 2 to ...
-1
votes
1answer
32 views

Create register form plus send post

I want to make custom register page with some additional fields which will be shown later on users sent posts. All I need is : Making manual register page Registration Items That I Need Name ...
0
votes
0answers
31 views

URL Rewrite Rules & Get Method

I have three dropdowns on my blog which allows you to filter by custom taxonomies. I'm using the following function to create the dropdowns: function get_terms_dropdown_risk_category($taxonomies, ...
0
votes
0answers
26 views

Update a string from the front-end

I want to have a form with a submit button, that every time the user clicks on submit, it updates a string (named order_string) and sends it to the back-end form to process. This is a part of my code ...