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
15 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 ...
-1
votes
0answers
10 views

Ajax submitting form values on same page

Having trouble with WP's ajax processing forms. My goal is to submit form values (type: 'post') to the same .php page and show them in appearing . How it is possible?
0
votes
1answer
15 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
29 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
2answers
3k 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
0answers
9 views

WooCommerce - Modify “Edit Address” Page Form Field Order? [on hold]

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
2answers
563 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
442 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
306 views

Page Options Saving But Not Updating In Backend

I have created a custom options page for a slider that you can upload slides to. Everything works great except when trying to save the data. It will get saved and I can use it on the front end. But ...
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 ...
1
vote
1answer
472 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 . ...
0
votes
2answers
458 views

Making 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
541 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 ...
0
votes
1answer
2k 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
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
22 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
376 views

add a form on clicking download link

I have a download page in my website. There i have a download link. On clicking the download link a lightbox will appear which contains details such as name,email etc. I want to download the ...
1
vote
2answers
666 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 ...
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
2answers
551 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
1k 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
1answer
23 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
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
16 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
1answer
42 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
198 views

GET form action. Redirect to self

I'm writing filter for posts by category on author page. I send category name in $_GET array in this form: <form action="" accept-charset="UTF-8" method="get" id="form1"> <select ...
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
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
12 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
3answers
910 views

How do we remove the H3 tag for the reply-title I.D

We're doing some SEO tweaking to a site, and our SEO guru informs us that we need to remove the <h3> tags from the #reply-title element, output from line 1554 of comments-template.php. It's the ...
1
vote
0answers
9 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
2answers
1k 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" ...
0
votes
0answers
20 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
1answer
4k 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
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 ...
2
votes
1answer
581 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 ...
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
1answer
653 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 ...
0
votes
1answer
31 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
1answer
133 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
1answer
364 views

Custom Taxonomy Not Saving in Front End Post

I am trying to create a front end posting form that will allow users to create a post when schools are closed. I have 4 custom taxonomies closed_schools, study_open, safe_arrival, hour_delay. each has ...
0
votes
1answer
49 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
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
28 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
337 views

Search a title word through query_posts (not the exact match)

We're working on a database with personal data from different sportsmen such as name, height, weight, etc. We've managed to build a detailed filter through query_posts. Every filter field is working ...
0
votes
2answers
2k views

Checkbox won't check when label is clicked

I'm not sure if this is a WordPress specific issue but when I create a simple form as a widget in my sidebar the checkbox won't check when I click on the label. Strangely though, it does work when ...
0
votes
2answers
66 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
11 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 ...