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

Show error if form input field is blank

Hi i am creating a popup plugin in WordPress in which i want to disable my button which is outside form disable until my form fields are empty. I am not using submit button because after clicking ...
0
votes
1answer
35 views

wp_category_checklist won't show up for non-admin users

I have a product registration page with a form in which I use wp_category_checklist() to make my users select categories. This works great only, I just today noticed that only admin's can use the ...
1
vote
1answer
38 views

Setting specific image size for specific form upload file field

When you upload an image through a form's "upload file" field type to the Wordpress media library - Wordpress automatically generates three copies with three different sizes by default. Now I know ...
-1
votes
1answer
73 views

Help finishing script to export WP user data when form submitted

I have been searching for a solution to export WP user data to another application once a form is submitted. There is an article on how to do this but I am too noob to to get it to work and am asking ...
0
votes
1answer
93 views

Reset recaptcha contact form 7

I have multiple forms(contact form 7) in a page and need to reset the recaptcha after the form is submitted via ajax. I checked recaptcha API and it has grecaptcha.reset(); but it resets only first ...
0
votes
0answers
17 views

media_handle_upload adds unnecessary extra records in wp_posts

So I created a form to have a user create or edit a post: title, metadata and an image. I use this to update the title: $my_post = array( 'ID' => $post_id, 'post_title' => $...
0
votes
1answer
31 views

Custom Form Processing Issue

I have created a form on my wordpress site, a function to process the data located in functions.php, and an action php file. I have tested the processing function and know it works, but I'm having ...
0
votes
1answer
155 views

Hide the term description on the term edit page, for a given taxonomy

I have written some long descriptions for a custom category taxonomy. I don't want to remove them, I just want to hide it from the management page: /wp-admin/term.php?taxonomy=custom_category I ...
0
votes
1answer
45 views

How can I modify labels in default wordpress registration form? [duplicate]

I need to change Label text in registration form, especially "Email" label. I want to add asterisk or just add text "required field" How can I do that? Please advice...
0
votes
0answers
17 views

Plugin to get a result based on form checkbox

I want to create a page with form submit with 3 fields, for exemple: Type of door? [x] stone door [] wood door [] plastic door and then, in the same page return a text ::there are 5 type of stone ...
1
vote
0answers
23 views

After Submitting Comment Form Shows an Empy Page in WordPress

I have created comment form and write comments then submit. But it will shows an empty page. The page path is http://localhost/isite/test/src/wp-comments-post.php I have changed define(wp-debug true). ...
0
votes
1answer
85 views

Java code/ JSP page in wordpress

Is it possible to write java code or add a Jsp page in word press, I searched on Internet but did not find any solution. I found How to run applet in wordpress But that too was not helpful.
0
votes
1answer
70 views

Adding Additional Variables on Menus Page

I'm learning PHP by building a plugin to show or hide menu items based on a user's location. I am a bit stuck at the moment. In the function below, the text input is being saved to the database, but ...
0
votes
0answers
10 views

Redesigning the add new post form

This is a learning exercise. I'm trying to redesign the form that is rendered when a user tries to add a new post via the administration panel. So far i've tried messing around in wp-admin/edit-form-...
1
vote
0answers
17 views

A form that can save/edit after first input

I need a form on my WordPress website that users can input information into through dropdown fields.But i just dont want the information to go away after sending.I need them to still be able to come ...
4
votes
1answer
54 views

Can I verify nonce which was generated on a different WP site?

I have a form with the action going to a different wordpress site. I want to use wp_nonce to generate fields in the form on site A. Can I use wp_verify_nonce on site B to verify the nonce fields?
1
vote
0answers
37 views

Input in plugin widget does not allow spaces

I'm developing a plugin for a client which allows keeping records of reservations to their hotel, and it has a widget which allows clients to make reservations. However, for some reason one of the ...
1
vote
0answers
15 views

Building a request processor for multi-page forms, etc using $_GET requests

Good day, What I'm trying to accomplish in a semi-elegant way today is building a multi-step form type thing. Essentially, I'm trying to rewrite the page based on a $_GET request. Like, say, it's /...
0
votes
1answer
26 views

Wp_mail Returning False on Server

I'm spent the last hour trying to figure out why the wp_mail function is returning a false boolean. Here's my code. I can usually get this to work but can't seem to figure it out now. I'm thinking ...
0
votes
0answers
21 views

How to recreate post form on a custom PHP page.

I need to have my users be able to post pages on a custom php page, not through the standard Wordpress menu. Therefor i'm trying to recreate a form that can post just like the Wordpress 'add post' ...
0
votes
0answers
38 views

register_form injects broken html

I have been giving a task from a friend to fix a problem. Keep in mind that I am not very familiar with WordPress but I managed to figure where the problem resides. This website has a registration ...
0
votes
1answer
199 views

wp_dropdown_categories with multiple select

in the search box I would like visitors to be able to search for more than one location (houses). The code right now is: <div class="col-md-3 col-sm-6 col-xs-12"> <label for="...
0
votes
1answer
28 views

form built dynamically with php, not submitting

On one of my wordpress admin pages, I am building a form to add new mailers. I have it checking the templates mysql table and building the list of available templates, then also giving it the option ...
1
vote
0answers
31 views

Remove #wpcf7-f2450-o1 with Contact form 7 redirect

This is what I'm trying to do: I have a contact form, when the form submits I want to redirect to the page http://example.com/thankyou?c=thisisavariable . I can redirect, the problem is he redirects ...
0
votes
0answers
11 views

Pulling custom post type into a form

I'm trying to make an order form where products can be added by my client using the WordPress backend. It's a non standard form so Gravity or Ninja forms will sadly not do the trick. (needs a modal ...
0
votes
0answers
150 views

Contact Form 7 - redirect with variable | Google Analyitcs

This is the case: I have 10 courses on my website with a contact form where they can subscribe to the course. There is one contact form for all courses. When they subscribe now they just get a ...
0
votes
0answers
11 views

Advice needed: Specific contribution by users (form maybe)

I'm asking for your advice here, because there are so many ways to look at :( I hope you will help me out by replying with your opinion in this case. What I like to achieve is this: Visitors / users ...
0
votes
1answer
37 views

Submitting my form to the database and then redirecting to payment site

I am submitting data to my custom table and would then like to redirect to a third party who will handle the payment. (not PayPal). I have the following code which adds the data to the database. The ...
0
votes
1answer
238 views

How do I make multiple dependent input fields that use the jquery autocomplete function?

I'm trying to create a form that will allow the user to add a new listing on the front side of my equipment classifieds website. I have a custom post type set up with a custom taxonomy called ...
0
votes
0answers
10 views

Change contact form content from paragraph to hyperlink (Jetpack)

I got this contact from from Jetpack, running nice and smoothly. As an improvement to my form, I want to add the ability to click the link provided in an so called "textarea" from the form. Not the ...
0
votes
1answer
16 views

How get the content of the login form?

I would like to customize the login-form page. Is there a way as with the function get_the_content() for the article to get the content of the login page before it's send for output?
1
vote
1answer
69 views

My form action url is being prepended with a directory that does not exists

I'm trying to allow users to upload audio via form and HTTP POST request. Here is the relevant form code, from my page-profile.php : <form method="post" action="wp-content/themes/freelanceengine-...
0
votes
0answers
41 views

Multiple users registration form

I'm working on a wordpress-buddypress app proyect in which we want users to register in bulk. Let me explain: It is based on family activities so we would like to be able to make a custom ...
0
votes
1answer
102 views

How to create table with multiple radio button

I want know it is possible to add more then 50 radio button with 4 choice in one form? Form should be mail to the client email. I know we can do this with Contact Form 7 plugin but a problem is ...
0
votes
1answer
92 views

PHP- Why is my contact form keep showing it is invalid? [closed]

I was working on contactus.php form. I am not testing whether the email will be sent to our account. However, my objective is when the form is invalid, it will reload the page and redirect user back ...
0
votes
1answer
47 views

Simple php in wordpress widget [closed]

I am trying to calculate with simple maths but I cant get the following form make the calculations and output the results. Unfortunately I am a newbie. What's wrong? <?php add_action( '...
0
votes
1answer
80 views

How to create a form button that executes a function?

Consider the following example: we build a conference website (could be a WordCamp) that allows speakers to submits talks, and where a jury decides which talks are accepted. To handle this in ...
0
votes
3answers
91 views

Which action hook should I use to intercept a form upon submission?

I have a form on wordpress page with a POST method. I need to add an extra field to the form after submission but before it is sent to the URL in the action attribute. I was thinking to use an ...
1
vote
1answer
301 views

Gravity Forms - Using a Form to Pre-populate A Gravity Form

I have a custom form (hardcoded, not a GF) on one page I've written myself: <form id="tailor-select" method="POST"> <ul> <li> <ul> <...
1
vote
2answers
169 views

How do I embed a Javascript form directly into a page?

I have a new WP install with the Jupiter Theme installed. I have a contact form created in Sharpspring, a CRM that purports to work perfectly with WP, and automatically generates embed codes for ...
0
votes
0answers
27 views

Custom wordpress form with get method

I try to setup custom wordpress from its probably easy but... I made template and inserted this code: <form action="" method="GET"> <label>NAME:</label> <input type=...
1
vote
0answers
79 views

Select multiple categories from CPT to display in LayersWP builder widget

I am currently developing a LayersWP child theme and have registered a portfolio custom builder widget. In this widget I would like users to be able to select the categories that they want shown. For ...
0
votes
1answer
107 views

$_POST empty in using new php file added to theme

I am using a theme which handles form data with jquery (a handler function defined).I have added a new php file to theme (using it in as template in a wordpress page, also registered with rewrite ...
0
votes
0answers
29 views

How to set up an email newsletter signup without a plugin?

I have a client who uses GoDaddy Express Email Marketing, and there isn't a plugin to add a signup form. You can create a signup form on their site and then paste code, but it's to create a page, not ...
0
votes
1answer
30 views

Passing link parameter values to form

I've added edit|delete options in every row of a table, created in the admin panel. function column_A( $item ) { $actions = array( 'edit' => sprintf( '<a href="?page=%s&action=...
1
vote
0answers
76 views

How do I pass the id of my widget to javascript in the form function?

I would like to add a Quilljs editor to the admin area of my widget, but I am having trouble passing $this->id to javascript. I am using the foo_example widget code, and I've appended the ...
0
votes
1answer
25 views

Display number of sign-ups [closed]

Our website has a page where visitors can sign a charter. We'd like to display a counter for how many people have entered their details. It needs to update dynamically each time a new person signs up. ...
0
votes
1answer
87 views

Processing forms with php to wordpress database

I'm simply trying to process data from an html form into my wordpress database through php. I've tried multiple times to get the data inserted but have had no luck. The setup is as follows: Database ...
1
vote
1answer
873 views

Get selected values from checkboxes and radio buttons via Gravity Forms gform_after_submission hook [closed]

Gravity Forms offers a reasonably good documentation and of course Google offers more insights into how developers have solved other challenges related to this plugin - but we need to achieve what ...
0
votes
1answer
52 views

Search only working on front page (index) , not working on other pages

I'm currently building a custom WordPress template and I've run into a problem with the search box. When I use the searchbox from the homepage, it works as intended. It also works as long as ...