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

Pass important values server-side when processing form

I am working on a plugin that has the following within a <form> tag: <input type="hidden" name="postid" value="<?php echo $postid; ?>"> The problem with this is that users can ...
0
votes
2answers
19 views

Add extra fields to register form woocommerce

I've followed the following link which allows data to be saved via a field name i.e. billing_city, billing_phone which is great and helps me a little. Although their is a requirement to add extra ...
0
votes
0answers
21 views

Edit registration page

I'm using WordPress, plus BuddyPress and bbPress plugins for a student community. I want to edit my registration form, allowing students to select their school. Under school it should provide ...
0
votes
0answers
15 views

jQuery color picker function on change

So I'm writing a Wordpress plugin that generates a live preview upon changes to a php form using ajax. Everything is working great, but one little issue with jQuery is not quite right. Normally, when ...
0
votes
1answer
18 views

How to know what submit button the user clicked?

I'm working on my settings page, I want to add two different buttons to the form and do something different depending which the user clicked. The documentation states I can create two buttons like ...
-2
votes
0answers
10 views

Custom fields for woocommerce on billing details [on hold]

I am new to wordpress development from a coding perspective. I have searched the web and forums to find an easy explanatory answer that would also teach me more regarding editing woocommerce themes. I ...
0
votes
0answers
27 views

how to capture the value of the selected parent category

I am very new to WordPress as well as coding and I am stuck with one of the form field, which has a select box for listing all categories and sub-categories (taxonomies) in it. But I would like a ...
0
votes
0answers
8 views

More fields on custom signup page

I have recently read this question. --> How to edit a user profile on the front end? Now, i am thinking of to build a custom signup page for my site. But, i searched over the internet i found all ...
0
votes
1answer
14 views

Registration form labels - add asterisk

Is there an easy way to add a required symbol like '*' after the html <label> text content in the default user registration form? I'd like the Username and E-mail labels to display: Username * ...
0
votes
1answer
40 views

Front end page submission form does not attach custom post type

This side of WordPress is completely new to me, but is also extremely important. I have created a form that allows me to upload a page, with all the parameters I need, however a custom taxonomy is not ...
0
votes
0answers
16 views

Data not saved Wordpress Custom Admin Page

I try to create an option page for a Wordpress theme. I manage to create the page, the Metaboxes , but when I send the form, the data are not saved. Before I show you my code , I specify that I use a ...
0
votes
1answer
33 views

add function to saving change on Options Pages

i make page like this link and it work fine but i need to run some script after it like editing a file i was add it to function my_function() { //do something } function register_mysettings() { ...
1
vote
0answers
21 views

Ajax form submission from admin panel

I have created a page in admin panel and there I have created a form for CSV export/import . Action of my form is "/wp-admin/admin-post.php" . I want to submit that form via ajax . I want to remain on ...
0
votes
0answers
28 views

How do I handle a form submission to a custom page template?

I have an html form on homepage which list some cities and areas in dropdown.When user submit the form I want to display wordpress authors/users based on those city and area selected. I already handle ...
1
vote
0answers
21 views

Handling results from data hooked into admin_post

I'm writing a plugin that uses a form to pass some data through to itself. Is there any way to do this "The WordPress Way"? Sample form code (on a custom submenu page added under "Tools"): <form ...
0
votes
1answer
33 views

WPDB secure custom form

I'm creating a custom form to update rows in a secondary MYSQL DB, different from the one of wordpress. This form is public and every user can access it. So I've created a plugin and I'm using also ...
1
vote
1answer
37 views

WP Plugins - Use includes to display page content

So I have a plugin I have been working on. It adds a menu and multiple submenus. Each submenu page contains a form, this form is created in a function called add_content_submenupagename. This ...
0
votes
1answer
18 views

Using AJAX for dynamic settings pages

I have a settings page like ... add_options_page ( 'XXX', 'XXX', 'manage_options', 'xxx_plugin', 'xxx_options_page' ); function xxx_options_page() { ?> <div class="wrap"> ...
0
votes
1answer
18 views

search form display no result

i create a searchform in my footer.php <div id="cd-search" class="cd-search"> <form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( ...
0
votes
0answers
82 views

value not saving in the form when dynamically creating an input

var AppendDivStore = jQuery(".AppendDivStore"); jQuery('<input />').attr( { type: 'text', class: 'PastetheSkillsValuemy'+inc+'', id: 'wpjobus_resume_skills['+inc+'][1]', name: ...
0
votes
0answers
15 views

Editable form with database

I want to create a profile page in which user will give title and description for it.this title should be visible in list on same page by clicking on it associated description should get open for ...
0
votes
0answers
8 views

Accessing current post data through a function

I'm using ninjaforms on my wordpress site and i have a form that is displayed on my post template. The idea behind the form is give the user a PDF file once they have completed the form. I need to ...
0
votes
0answers
35 views

Simple email input store in database

I'm trying to build a really simple form to store email adresses in the wp database for future newsletter purposes. What I have is just a single email input: <form method="POST"> <input ...
0
votes
0answers
25 views

Creating a custom Search Form that links to a custom database?

I'm kinda new in Wordpress and I'm still learning as I go along. Currently, I'm trying to create something like this I have a custom set of database in the server in mysql with a table. The ...
0
votes
1answer
41 views

How to HTML5 FormData Ajax

How do I use FormData in wordpress ajax ? I am appending files and strings to formdata. var formdata = new FormData(); formdata.append('name', 'This is Name') $.ajax({ url: ...
0
votes
2answers
112 views

Insert Query not working in the form

Many people has asked the same question, I have read those things and mine is different, I am trying to insert some values inside the database from the form but it's not getting inserted I have a ...
0
votes
1answer
31 views

Wordpress custom form post to different page

I have a site which is developed with PHP and recently I added Wordpress blog(same domain with /blog url) to that. I would like to implement two extra functions(subscribe/contactus) on that blog ...
0
votes
1answer
35 views

Adding attribute to the post.php form tag in wp-admin

I need to add a 'novalidate' attribute to the form tag in wp-admin post.php. The post.php code itself does not contain the tag, rendered from elsewhere so wondered where it may be or better yet if ...
0
votes
2answers
64 views

upload images on front by user using form

I'm using a form on my website using wordpress to allow users to create posts. It works perfectly fine, I'm abble to assign the posts to a custom post type, add Advanced Custom Fields, content, ...
0
votes
0answers
44 views

Insert data to DB

I create plugin and that plugin, when is activate, create new table in DB.. Now i need to insert some data like (firstname, lastname..) in that table.. Here is my form : <form name="cool_form" ...
0
votes
0answers
9 views

Does adding nonce in save_post hook for every metabox really improve security? [duplicate]

I see a lot of example [1] that introduce the checking of nonce in the save_post callback of a metabox. e.g. function smashing_save_post_class_meta( $post_id, $post ) { /* Verify the nonce before ...
0
votes
0answers
32 views

Split a long form into multiple pages 2

this is a question as a followup to this discussion: Split a long form into multiple pages In essence: I have a long form that gets submitted. I need to change this to a multipage/multistep form over ...
3
votes
1answer
53 views

Modify Term Update Redirection

Whenever I update a term it currently redirects me back to the edit-tags.php page for that taxonomy, the term list. Is it possible to instead of redirects to the term list to instead bring me back to ...
0
votes
0answers
19 views

Disable ajax on custom taxonomy form

In my plugin, I have create a custom taxonomy, service (similar to default category). I want to attach a file with the service. I have completed the updates to form as well as the code that should ...
0
votes
2answers
39 views

Disable only the comment form/box itself?

I'm trying to write a function which hides the comment form itself, while leaving comments and comment counts intact. I'd like the comment form to display only when a certain parameter is in a post ...
1
vote
1answer
38 views

Are there any standard HTML markup for metabox?

The add_meta_box HTML callback is rather low level that we need to code the HTML by ourself, e.g. echo the HTML form markup function myplugin_meta_box_callback( $post ) { // Add an nonce field ...
0
votes
0answers
43 views

How to create a petition like form based on custom post types?

I'm trying to make a "petition" like function for a WordPress theme but I'm out of ideas. Basically, here's what I try to achieve: Create a custom post type Creating a form so people can submit ...
0
votes
0answers
30 views

Using Settings API to manage plugin data stored in custom table

I'm working on a plugin which needs: to store settings in wp_options table to store other data in several custom tables For the first point, I used the Settings API and everything works just fine, ...
0
votes
0answers
222 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
0answers
15 views

Ajax form submission [duplicate]

Been trying to do this for 2 days now, getting nowhere. I'm following the page here - http://solislab.com/blog/5-tips-for-using-ajax-in-wordpress/#admin-ajax So I have a simple form <form ...
0
votes
2answers
39 views

Form submit from wordpress plugin

Seasoned dev, but new to wordpress development - becoming a fan very quickly. I'm knocking up my first wordpress plugin (custom contact form for client, none of the plugins can do the jazz I need). ...
0
votes
1answer
42 views

wp_create_nonce function doesn't work inside a plugin?

I am writing a WordPress plugin which is creating a form in one of its functions. It looks like this (very simplyfied): class MyPlugin { public function createForm() { $nonce = ...
0
votes
0answers
100 views

Global Variables Reset After Form Submit Wordpress

I am making a spam prevention program by randomly generating sums to answer. When I try to access the value after the form submits, it does not exist. I declared global variables inside function.php. ...
0
votes
2answers
310 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
2answers
54 views

How to make blog post entries appear as input form instead of just text?

I want my blog posts to appear inside of a form input box instead of just text on a page. Not the title, but only the submission. Is that possible. My index.php: <a href="<?php the_permalink() ...
1
vote
0answers
21 views

Let readers suggest edits from the frontend

I'd like to make my articles editable at the front-end for any reader who visits the site. (More like a wiki). I don't really want to trouble them through the registration process. I have no idea how ...
0
votes
0answers
37 views

“Add post form” inside a custom admin widget?

I have created a custom post type (support ticket) and a custom user role (client). So, I want to create a widget that allows a client to add a new ticket (which contains only 3 custom text fields). ...
0
votes
1answer
56 views

Should I use wp_nonce_field on my contact form?

I have created a self submitting contact form template and it works nicely, however when I was browsing the web in search for tutorials (for creating contact forms) I have noticed that some people ...
0
votes
0answers
21 views

display meta value depending on post selection

I have created form for event.In which I have added selectbox for events I have created meta value for price in post Now I want to display meta value depending on post selection from selectbox how to ...
0
votes
1answer
36 views

Why WP redirecting to homepage after GET form submitt?

<form method="get" action="example.com/?category=1"> <input type="submit"> </form> action parameter may be any page etc. but it always redirect to homepage. If change method to ...