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
121 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
36 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
35 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
83 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
26 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
99 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
1k 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
60 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 ...
0
votes
1answer
69 views

Display result of custom form

The website I am working on can list restaurants and we can rate them. Currently, I'm developing a multi criteria search to find the good one. I created a custom HTML form with XYZ Html (plugin) and ...
0
votes
0answers
27 views

Detect when media select input field has been populated in a plugin

I have some code in a little plugin I am trying to make that allows a user to select an image to use : <input type="text" name="thumbnail_adr" id="thumbnail_adr" class="regular-text" value="<?...
0
votes
0answers
94 views

Plugin options page - form with two different submit buttons

In my plugin options page I have two buttons, netted way down looks like this - a single form, with two submit buttons. <form action="options.php" method="post"> <input id="submit_button" ...
0
votes
1answer
284 views

Ajax image upload with media_handle_upload and form.js

I want to have AJAX image upload on front-end form and can't figure out where it goes wrong. HTML form for image upload <form id="thumbnail_upload" method="post" action="#" enctype="multipart/...
0
votes
0answers
18 views

Custom Contact Form - Attachement and receivers

I have created a custom contact form using this code: function contact_form_markup() { $form_action = get_permalink(); $author_default = $_COOKIE['comment_author_'.COOKIEHASH]; $email_default ...
0
votes
0answers
20 views

Handle comment errors without a session

Im currently working on the comments-section of a WordPress site. I have worked on a lot of WordPress sites, but this is the first time I incorporate a comment section. I was quite surprised to see ...
0
votes
2answers
46 views

Ajax call URL 404'ing when pushed to staging server

I have AJAX form submission working fine locally. But when pushed to my staging server the process page is 404'ing. I cannot access it directly neither as it 404's but checking on the server and its ...
0
votes
1answer
31 views

What is the proper way to embed the HTML of an external form such as payflowlink from paypal?

I've had a request to paste in the following into a donations page for a group. The trouble is that WP is (rightfully) curtailing this HTML to prevent me or anyone from doing something less than ...
0
votes
0answers
94 views

How Do I Add a Custom Field Inside a Gravity Forms Field?

I would like to add a custom field inside a gravity forms field. The custom field should accept HTML syntax. Here is an illustration of what I would like to achieve: To be specific, how do we add ...
0
votes
0answers
24 views

Submit form to plugin file 404

i've a custom form which i'm trying to process, i created a plugin to do so, however everytime i try to submit the form i'm getting 404 error. this is how my form's action looks like: <form ...
1
vote
1answer
108 views

meta_query issue with multiple numerics

I'm having an issue with a search form. I basically have 7 input fields used to search different properties. All of them apart from the last two see to be working, as soon as I introduce the last two ...
0
votes
0answers
123 views

Generate page URL based on form field input

I have a WordPress page with the URL: http://example.com/mypage/ On that page I have a custom form, on the submission of the form I want to generate the URL in following format: http://example.com/...
0
votes
0answers
56 views

Tracking click event

I'm trying to use Google Analytics Events Plugin to track some events on this page I added a Click event on class et_pb_contact_submit et_pb_button and on id _wpnonce-et-pb-contact-form-submitted. I ...
0
votes
0answers
51 views

How to retrieve value from Gravity Forms input and put it in template?

I'm trying to retrieve and input from my Gravity Forms form and put it into a template file. I know I have to use gform_after_submission but I am not sure what I am doing. This is what I have so far: ...
0
votes
1answer
450 views

How to handle dynamic form data with repeating fields?

I'm attempting to create a form with duplicatable sections for a listing site. It should work like this: Start with one listing form -> Fill out the form Click "add another" and another duplicate ...
0
votes
1answer
148 views

Validate form in functions.php, send errors back to template

I have a form in a template that upon submission should be validated, and any errors should be displayed, and if no errors, insert the data into the database. I'm new to wordpress, but my idea was ...
0
votes
0answers
18 views

Filtering custom posts

I have to add functionality to my wordpress site that displays some custom posts. However I need to filter the output based on multiple categories/taxonomies (I dont know whether to use catogories/...
0
votes
1answer
55 views

Update only some custom user fields

I have created multiple user fields. These fields are only managed by the administrator to add additional information about the user Now the rules have changed. The users must gain access to their ...
0
votes
0answers
26 views

Image Gallery / Thumbnail for Theme Framework through plugin form

I'm using WPUF plugin form in order to submit custom post_type from frontend and I need to implement the form to themes framework, so it can set the thumbnail / gallery in submitted posts. I ...
0
votes
0answers
41 views

Force user to login before submitting form

I have a form to upload a file to my server and I'd like to force a not registered user to login before submitting. I know how to force him to login after the form is submited by: <form action="...
0
votes
2answers
20 views

How to switch between two forms for visitor once admin logged in?

I have two forms (form1 and form2). Once the admin is logged in anywhere, all visitors (not logged in) to my WordPress site should see form1 on the page, otherwise they should see form2. I am using ...
0
votes
0answers
28 views

How to automatically send the data entered in a form to another specific user of the website?

I want to send the data and image uploaded by a visitor to another specific registered user of the website automatically. The recipient will be decided based on the data entered in the form. Please ...
0
votes
1answer
50 views

rewrites and custom links in page need help with add_rewrite_rule

I have one page with edited permalink, like, address.com/detail/ I need to send there some values by GET request, so i would like the link looks like /detail/value1/value2/ i added this code in ...
0
votes
1answer
45 views

Direct form to a custom page template

I have the following form in a Wordpress page : <form action="dbsearch.php" method="POST"> <input name="input" type="text"> <select name="search4" size="1"> <option selected=""&...
-2
votes
1answer
36 views

From contact form to paypal

here's my problem. I'm hosting my website on wordpress.com so I really don't have much flexibility to adjust and switch up codes till i upgrade to premium which i'm not too sure i might do because it ...
1
vote
1answer
125 views

Contact Form 7 - Add a Info Text to Checkboxes/Radiobuttons

I need a description to every Checkbox/Radiobutton. For Example Dancecourses. [checkbox* dancecourse use_label_element exclusive "beginner" "crashcourse" "another course" "another course"] I define ...
0
votes
1answer
35 views

Duplicate “default” form with jQuery

I have this code: // Add form jQuery('.add-form').click(function() { // "Copy" default form formGroup = jQuery('.form-item').html(); // "Paste" default form jQuery('#main-form')....
0
votes
0answers
112 views

Contact Form 7 - possible to add form's field multiple times?

I use the Contact Form 7 plugin on a site as events' registration form. I embed the generated forms' shortcode to Pages (I have more forms with different fields). Is it possible to add a button for ...
0
votes
0answers
83 views

How to get data from Wordpress form into php or C#

I have a wordpress website and I created a form where the users can put in some information. I want to get that submitted information using preferably C# or any other popular programming language like ...
0
votes
0answers
46 views

How do I create a form for users to post on the front end?

So basically I have a music theme that allows me to upload music as a post. I want to use the same information on the backend that is in a php file, for the users on the front end, how do I do this? I'...
0
votes
0answers
99 views

Post from front end form to post_meta

I want to save a value from the frontend of a post to the post_meta table. Sofar I have this, but it won't save...... I have read that I could use the update_post_meta even if the meta_key doesn't ...
0
votes
0answers
23 views

Wordpress Form Manager

Thanks in advance for any consideration given here. I am building an employment application using Form Manager. Once the form reached a certain size, it quit working and would no longer update. Is ...
0
votes
2answers
484 views

Run JavaScript validation script on form submit in plugin

I have created a small custom plugin which is just an HTML form. The HTML form is echo'd out using PHP and it includes a small JavaScript function that I want to run on submission. I cannot get it to ...
1
vote
1answer
681 views

Ninja form Redirect depending on text field content [closed]

I'm using Ninja Forms and their extension to do front-end posts. They have a function that is supposed to allow you to redirect to a specific page depending on values from the form. my purpose is to ...
1
vote
1answer
50 views

Spammers attacking my Wordpress Site - Removing URL field from core? [closed]

I removed url field from my comments so there is just basically name, email and textarea field. But spammers are keeping spamming me with comments that has URLS even if comments form doesnt have any + ...
0
votes
1answer
41 views

us states dropdown function and echo in theme template files

This may seem like a stupid question but for whatever reason I cant find an answer that works for me.. -- I am trying to create a simple html drop down function in functions.php so I can then echo it ...
0
votes
1answer
347 views

Submit form to a different PHP file in the same plugin folder

I want to submit a form to another PHP file which lays in the same folder: wp-content/plugins/my-plugin-folder The form action attribute looks like this: <form name="lookat" type="submit" ...
0
votes
0answers
100 views

Best practice for writing backend forms to interact with database

I am responsible for a Wordpress site where ingredients, recipes, allergens and similar data is inserted into the database. All the columns in the database are separate from the Wordpress database, ...
0
votes
0answers
37 views

Can I use a hook other than 'init' to handle form submissions?

I'm developing a plugin that handles form submissions at several different points. As such, I was relying on being able to use global $post and get_query_var to determine which stage the user is at ...
0
votes
1answer
304 views

Implementing a custom form in Wordpress

I'm relatively new to Wordpress development. The Environment: Wordpress installation with newest WP version and a Child Theme being used to keep things tidy. The Task: I've created a custom HTML ...
0
votes
0answers
37 views

Save url parameters once page is loaded

I am sending out a campaign and want to track not just how many clicks I get via the campaign, but who of who I send it to actually clicks it. On my end I can append url parameters with the details I ...
1
vote
0answers
68 views

How do I make a child theme I made POST through a 3rd party plugin?

I made a custom form in a child theme I am developing. One of the plugins I have installed is Anspress. I want to use my question form instead of the plugin's form. How do I make my form post through ...