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
2answers
23 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
30 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
8 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
13 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
23 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
6 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
30 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
31 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
35 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
16 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
47 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
24 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
28 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
52 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
77 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
35 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
16 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
26 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
37 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
16 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
22 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 ...
0
votes
2answers
43 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
0answers
14 views

Post content obtained via get_post has shortcodes in html form

I have a plugin that fetches the content of a post and displays it inside a form for editing. It works well with a wide range of plugins but Nexgen Gallery is causing a weird issue. When I use ...
0
votes
0answers
8 views

Existing Form Data with Emails - Create users allow editing etc

Someone wants to contract me to build off their existing WP site. Over the last year they have collected about 1000 entries via a form in WP. Each entry has an email associated with it. There were ...
0
votes
0answers
22 views

My Ajax Query is returning the contents of the page itself

I am attempting to execute the submission of a form in AJAX. function rapid_form_callback() { global $wpdb; $table_name = $wpdb->prefix . "my_client_here"; require_once( ...
0
votes
0answers
103 views

How to display error messages in custom login or registration page? (Or how to display error messages at all?)

I have a created a custom login form and have no idea how to display the error messages. I don't know where to start or what to do. Here's one of the forms I made: <form method="post" ...
0
votes
1answer
333 views

AJAX fileupload - TypeError: not a function ajaxSubmit()

I have a plugin that works as a standard POST but not as an AJAX POST request. I am getting a not a function error in Firebug with this function: TypeError: jQuery(...).ajaxSubmit is not a function ...
0
votes
0answers
42 views

How can I change the lost and reset password from action url?

This a second part to my original question posted via the following link How to change/rewrite the lost password url? Submitting the lost and reset password from generates a 404 because there action ...
0
votes
0answers
24 views

Default options in a theme form

I purchased a theme that allows to choose the layout options when entering a new article from the backend. There are three options: none, right sidebar and left sidebar. As items are added to my ...
0
votes
2answers
59 views

Storing user submitted forms [closed]

I was wondering what's the best way to create a form which can only be seen by registered users. The main idea I'd like to achieve here is for users to log in and gain access to a page where there's ...
0
votes
1answer
72 views

Split a long form into multiple pages

I have a long form that gets submitted. I need to change this to a multipage/multistep form over several pages. I'll add a somewhat clean version of it, its custom made so there is no source. ...
1
vote
0answers
124 views

Contact form won't submit

I posted this on the Stackoverflow site and haven't received much assistance with the issue. I hope that, by reposting it on here, someone could please offer me any assistance. I am creating a theme ...
0
votes
1answer
77 views

How to allow specific extensions and file size to wp_mail attachment?

I am trying to create a form with an attachment option that will be sent to an email when the form is submitted on a wordpress site. My codes work fine and it sends email in a HTMKL table format to ...
0
votes
1answer
53 views

how to set from address according to the form input email address for wp_mail()?

I am trying to create form and send it to my e-mail address using wp_mail. my wp_mail() code is: if($_POST["submit"]) { $to="am.riparz@gmail.com"; $subject ="Arugambay Bookings : New ...
0
votes
1answer
51 views

PHP form is not sending mail if I use mime type and version in header. How to solve this? [closed]

If I use the following code, then the form works fine and I am getting form submissions to my email. <?php if($_POST["submit"]) { $recipient="meemail@gmail.com"; $subject="New request"; ...
1
vote
0answers
23 views

Edit Custom Post Type on Custom Admin Page instead Post Admin

Background: I am still quite fresh to coding and WordPress. For me the best way to understand, is to work on a specific project. Project: I want to build a Customer Relationship Tool for WordPress ...
0
votes
1answer
104 views

Custom form action hook

I am writting a simple newsletter subscriber plugin. I created a widget with form: echo '<form action="'.home_url().'" method="post" name="subscriber_form">'; echo '<p><input ...
1
vote
3answers
200 views

How to show a 'correct' message after submit a form?

I'm building a template page for submit a profile changes. I would like to show a 'correct' message in green(example) for the user knows. Here my template code: <?php global $avia_config; /** * ...
0
votes
1answer
59 views

Update post meta without deleting the old entries

$old = get_post_meta($post_id, 'figure_sugsubject_repeatable_fields', true); $new = array(); $figuresugsubjectpositions = $_POST['figuresugsubjectposition']; $figuresugsubjectworkplaces = ...
0
votes
0answers
26 views

Text widget form and URL variables

I have an HTML form that I dropped into my Wordpress text widget that connects to a third party service so I need the form variables to be exactly right for it to work. The form is using GET rather ...
0
votes
0answers
47 views

Create user assessment and use results in sql query

I am building a plugin that displays custom post types based on a user's assessment result. For that I need the user to fill out a form (not a very complicated one). This form submission needs to save ...
0
votes
1answer
37 views

Form processing: How to process form before output and access data from shortcode

I have a form that's output with a shortcode. I need to be able to conditionally process a redirect on the form submission, so the form processing needs to happen before any output is sent (I've put ...
0
votes
2answers
274 views

Grab values from the query string to fill in hidden fields in ninja forms [closed]

I've added a custom page template where I pull out a list of available jobs from the database. The page displaying the jobs is called jobs. I'm using the Ninja forms plugin to add a form on a page ...
1
vote
1answer
23 views

Display users uploaded files as posts

So I have implemented the functionality where anyone can upload certain types of files with a title and description. I am having trouble with the idea displaying them as posts or list in the a certain ...
0
votes
1answer
45 views

Form Plugin for Api Requests which is used via Shortcode

I've a little PHP Script with a input Form which is used to register for a newsletter. This Form accepts only an email address and then makes an api call using curl. Now I wan't to build this form as ...
-1
votes
1answer
29 views

Auto populate a Form

I'd like to auto populate a form / Text area with the post content ! For Example : The link below has got a link which take it to the form ! http://cozysms.com/passenger-tumne-mere-jeb-me-hath/ ...
1
vote
1answer
76 views

Using ajax with wordpress

I'm trying to get my head around ajax requests in Wordpress and am finding it hard to understand. Basically I have a form that has a number of steps and you move through these requests using ajax, ...
0
votes
0answers
39 views

Assign uploaded file to user

I'm developing a project in which I need to give the logged in user (editors) the option to "give" that uploaded file (media) to a specific user. In other words, i want to add an additional field in ...
0
votes
1answer
55 views

How to pass username into form that sends data to database

I am trying to pass username to database through form: [insert_php] $current_user= wp_get_current_user(); $id= $current_user->user_login; [/insert_php] <input type="hidden" name="id" ...