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

Create a shared checklist within Wordpress

Looking for a little help on solving this problem - I've a three week old girl whose nocturnal wakings seems to have damaged my brain. I've a client who wants all of their users to be grouped by work ...
-4
votes
0answers
23 views

how to validate the current form page? [on hold]

<?php add_action('admin_menu', 'my_cool_plugin_create_menu'); function my_cool_plugin_create_menu() { add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $function); ...
0
votes
0answers
12 views

Different submit action with Gravity Forms depending on conditional logic?

I have a Gravity Form (submitting to a 3rd party via 3rd Party Integration) that uses conditional logic to show different fields based on selections. For example if user selects "a" from a dropdown ...
0
votes
1answer
28 views

Text Disappears in forms [closed]

I'm sorta new to wordpress. I tried inserting a form into my company wordpress site. But everytime i typed in the blank area, the text kinda disappears, like a wall covering it but can see right in ...
0
votes
0answers
38 views

WordPress AJAX File Upload - FrontEnd

So I have been reading through every WordPress front-end AJAX file upload tutorial I can fine. Nothing is working for me at the moment. The one that makes the most sense to me is this one: ...
0
votes
2answers
11 views

Redirect to page after a widget form submit

I have a widget form with custom fields like age,pincode etc.The submitted form data will be submitted through a 3rd party API which will output me JSON. Now I want to redirect to a page showing the ...
2
votes
1answer
47 views

Processing a subscription form with POST method?

I am trying to integrate a ‘subscribe to newsletter’ feature on my wordpress blog Users just need to enter their name and email address, hit subscribe. This is then supposed to send me an email and I ...
0
votes
1answer
15 views

How to stop being directed to admin.php after sending request to admin-ajax.php

On my plugin admin page, I have make an ajax request to admin-ajax.php. For some reason, once the request is made, another request is made to admin.php which directs me away from my current page... ...
1
vote
1answer
39 views

How do you filter the list of states when country is selected? [closed]

Seeing as there is no StackExchange site (or any other forum, that I can tell) made for WooCommerce questions, I'll run the risk of being shot down for being "off-topic". I need to add a third ...
0
votes
0answers
51 views

how to use custom form field values in email - woocommerce

I am using following code to add a custom field to woo-commerce registration form. After registration is done. I am saving generated activation key to wp_users table. By using that custom field value. ...
0
votes
0answers
23 views

Search form not working as expected

I've made a search form with dropdowns and when I select an option from each one it does not display any results. I've been trying to change the wordrpess search query but with no luck until now. here ...
0
votes
2answers
44 views

Ajax contact form returnig 0

I have read through a lot of responses on this site and am unable to find the issue with my code. The form is : <?php while (have_posts()) : the_post()?> <form method='post' ...
0
votes
0answers
21 views

Adding radio buttons to the Registration form

I have two user groups, companies and individuals and want to add a radiobutton to select between these two. The register form should show a certain field additionally if "company" is selected. I've ...
0
votes
1answer
20 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
35 views

Dealing with html forms [closed]

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
25 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
27 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
43 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
24 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
17 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
106 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
32 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
vote
0answers
16 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
24 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
26 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
37 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
55 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
18 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
31 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
220 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
158 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
12 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
57 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
76 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
547 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
49 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
65 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
28 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
139 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
78 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
229 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
56 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
74 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
10 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
12 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
52 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 ...