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

Want a form to appear in a post via wp_insert_post, form tags appear, fields don't

I use wp_insert_post to import external data in WP3.8. Part of the post_content field is a small form, see below. $content="<table><tbody><tr>"; $content.="<td><form ...
0
votes
0answers
28 views

“Single Form” That Is Editable

I'm using wordpress to create a site that will have pages of information that can be edited inline. In other words, it will look something like this: ...
1
vote
0answers
54 views

Image upload and other options in the same plugin settings form?

I write a wordpress plugin. My plugin has two options. One is an image upload mechanism and the other is a checkbox. My code is below: <?php /* Plugin Name: Plugin Name Plugin URI: Description: ...
0
votes
0answers
165 views

add login and signup popup form in header

I use <?php wp_register(); ?> <?php wp_loginout(); ?> to show a link to the wordpress login and sign up screen. It opens up another page. My question is how do I make it so that when ...
0
votes
1answer
129 views

jQuery Live Form Validation in Wordpress

I'm trying to implement the form validation that can be found at: http://www.geektantra.com/2009/09/jquery-live-form-validation/ I can get the demo above working, but when I implement it on my ...
0
votes
0answers
30 views

Adding a Filter to Sidbar Login Plugin to Change Login Button Lable

I'm a newbie and I have not been able to find an answer to my question. I have installed the Sidebar Login plugin and I'm trying to change the form labels, specifically,the login button label. I ...
0
votes
1answer
66 views

Form submission to another page returning 404 error [duplicate]

I'm modifying a form plugin, and trying to have it submit to another page chosen by the user. Right now the page it submits to is page_id=6. If I navigate to this page myself, it prints Array(). When ...
0
votes
1answer
116 views

Correct Syntax for uploading files to custom directory in Wordpress

I have current PHP code that works when attaching files on a form. The files have to go to a certain directory. I know that while attaching in Wordpress I need to use a different syntax. However, I've ...
0
votes
0answers
119 views

insert data from form to custom table

I have a custom form set up on a custom page template. I need the submitted data to be saved in custom table. What am I missing since this isn't send the data? The code I'm using: ...
0
votes
1answer
427 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
64 views

Drop-Down Menu of Current Child Pages

Sorry if my question title didn't make much sense. I'll try and explain. I am using the 'Contact Form 7' plugin on a WordPress site and would like to display the child pages of the current page in a ...
0
votes
0answers
121 views

Gravity Forms, multi-page, loading dropdowns dynamically, dropdown values clearing on submit

Using a two-page multi-page Gravity Form with AJAX. I have an issue with one of my dropdown's clearing it's $_POST value on submit. I have: A US States dropdown - loading dynamically via ...
0
votes
2answers
59 views

Wordpress Form To Email.php and Theme

I have some custom forms in my template pages. I'm using a form "action" to link to a formtoemail.php file. Everything works if I leave formtoemail.php as is, but I would like to call in my theme ...
0
votes
1answer
32 views

Restore Cforms II Form Presets

I have a client who had to reactivate the cforms II contact forms plugin. It refused and gave the following error: *Fatal error*: Cannot use string offset as an array in ...
-1
votes
1answer
43 views

Best way to handle a form post in plugin

I'm doing a plugin that needs to be able to post data to a third party API. Users will fill out a form and press submit. The form itself - would it be "correct" to simply append html to a page ...
0
votes
1answer
26 views

Two searchforms with different categories/posts per page

For a project I'm working on, I need two different searchforms. One is a global searchform that is always visible in the header of the page, that searches everything in the website. The other one ...
0
votes
0answers
62 views

Nonces and Cache

It's clear that form submissions and AJAX requests, especially sensible ones, need "nonces" to avoid certain exploits. However, with heavy use of caching systems it becomes harder to generate them ...
0
votes
0answers
26 views

Rewrite URL based on form input

I have a form: <form action="<?php echo get_permalink(); ?>" method="get"> <select name="genres[]"> <option value="jazz"></option> <option ...
0
votes
0answers
71 views

How to display errors on Frontend Form

This is my frontend form to edit user's profiles in the frontend: /* Get user info. */ global $current_user, $wp_roles; get_currentuserinfo(); /* Load the registration file. */ require_once( ...
0
votes
1answer
441 views

Upload file to front-end form and send as email attachment

I am trying to create a front-end form that has an option to upload a CV (so pdf or word format) that I would like to be able to send as an email attachment. I've read a few articles and tutorials the ...
0
votes
0answers
52 views

Create plugin with form in post and submit it to specific form

I need to write plugin which add form at the end of specific posts with submit button. It is clear for me. Next after click submit I need to submit form to my own form from plugin and show more inputs ...
0
votes
1answer
64 views

How to use HubSpot Forms API in Wordpress pages?

How to use HubSpot Forms API in Wordpress pages? I have to pass dynamic values to the Hubspot Form. Thanks in advance
2
votes
2answers
333 views

Custom query form submission pagination

There is a question very similar to mine, which can be found here. The difference with my question is: my search form is on several pages (page.php and single.php) and I don't use wp-pagenavi. I've ...
0
votes
1answer
25 views

How to insert an e-mail form in the content area of a page?

I am developing a website using WP. In this page I have inserted textual contact (e-mail, telephone number, etc): http://www.saranistri.com/saranistriWPnew/?page_id=61 What can I do to have also a ...
0
votes
0answers
59 views

Meta Box Data added to header redirect

I got a lot of my code from this post: Create more Meta Boxes as needed What I need to happen is the user input a code and it redirects them to a specific url. I know I'm grabbing the data correctly ...
0
votes
0answers
50 views

How to detect shortcode usage, submit a form from widget to that page?

I've created a plugin and now want to create a widget containing a form that will submit to the page where my plugin shortcode is embedded from any wordpress page on the front end. I assume that ...
0
votes
1answer
118 views

How can I modify the media upload form fields?

I would like to add a line of text under the description field in the media edit form to give users more direction as to how to fill out this field. What is the best way to do this? I know how to add ...
0
votes
1answer
41 views

Inquiry form like on URL [closed]

I need to make an inquiry form on my website. This demo form is what I need. How can I make this thing? I tried Formcraft and Gravity but I don't succeeded. In the first time I want to choose the ...
0
votes
0answers
157 views

contact form 7 plugin send email to friend

I have problem in contact form 7 plugin. I want to "refer our office" to other friend but email is not going to friend. Here is my code: <p> [text* friendfirstname id:friendfirstname ...
0
votes
0answers
52 views

How does register_setting and settings_fields work?

In the WordPress settings API, I understand that register_setting() must be called for add_settings_field() to be saved and updated according to the codex. Since almost every WordPress function has ...
0
votes
0answers
23 views

Gravity Forms show only values from a post

I have for example a contact form with a dropdown input called Category. I want not to show all the categories, but only the categories associated to the post. I have to do this, also with different ...
1
vote
0answers
45 views

Login to wordpress by clicking a link and specifying usernaname and password in url

I'm running a php application on an ubuntu server that's completely independent of my wordpress site. I'm using an iFrame of the server inside the wordpress site, but I need to login to Wordpress with ...
-1
votes
1answer
32 views

Advanced searching form

I am trying to create an advanced searching page on front-end page for users. I have been trying to find but it's not easy to find some tutorial or sample source. I have found that It is possible to ...
0
votes
1answer
758 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
1answer
58 views

Search form options group categories

Hello i use this code to allow my readers to filter the search results by targeting a specific category. How can edit it to make 2 options of categories groups? I have 20 categories. I want the ...
1
vote
3answers
101 views

How to update selective options on plugin settings page

I write a wordpress plugin. My plugin has options. All options are in one group, 'pluginname-settings'. All option names are uniform and look like "pluginname-settings['option-name']". Some code to ...
0
votes
1answer
62 views

Submitting form in wordpress plugin

I am new to wordpress and currently making a plugin. I am getting list of authors using <?php wp_dropdown_users(array('name' => 'author'));?> Now when submitting my form I want to retain ...
0
votes
1answer
244 views

Validating custom fields before post save

After much unsuccessful searching, I'm hoping someone here can help me out. I am using Advanced Customs Fields (I assume most people are familiar) to create a post from the front end. I want to ...
0
votes
0answers
96 views

How to fetch form data and show it to my page?

I'm new to wordpress, & trying to create a simple form from of my use, and wanna do it by plugins . so I created a plugin for that but that is not showing the values of my form. there is a option ...
0
votes
1answer
81 views

How do I update the formatting of the Mailchimp Subscribe Widget

Installed the Mailchimp Widget in the sidebar of my website and the formatting for the widget is askew. I need to shorten the length of the "Submit" button. I want to remove the two radio buttons that ...
0
votes
2answers
166 views

How to hook into user registration process Before user registers

I need to add a field to the user registration form and then validate it before I add a new user to my WordPress I know how to hook into the registration form via add_filter('register_form', ...
0
votes
0answers
100 views

Contact form 7 plugin - How to send email of filled values only

I have a form that has some optional fields but if a user doesn't fill them out the label of the input will be sent in the email and they will be empty. so for example if a user doesn't enter a city ...
0
votes
0answers
41 views

How can I add Details about a company in Woocommerce checkout form

How can I add details (array boxes) upon checking a checkbox if the person who is ordering is representing a company (in checkout) NAME / SURNAME [x] I represent a Company -COMPANY NAME -REG ...
0
votes
0answers
25 views

form to generate url

i have a form on my site to generate url and it works good but the user should wait until the whole page is loaded to be able to use it properly , i think that happens because i use window.onload and ...
0
votes
1answer
407 views

How to insert multiple checkbox values into post as custom fields from frontend

I need to use a form in the front-end that allows people to post. I have tried to keep the minimum code in order to focus only on the issue (mentioned below) at hand. EXAMPLE FORM: <form ...
0
votes
1answer
86 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 ...
0
votes
0answers
88 views

Why the form's get method redirects to edit.php in wordpress admin?

I have a form in wordpress plugin and i am trying to submit it using the get method. The problem is that, the form redirects to edit.php page instead my custom post type page, which is ...
0
votes
1answer
152 views

Select post from dropdown and add query args not working

The behavior of the below should be that the user makes a selection on the dropdown box and the page refreshes with a query arg of editevent=1 and also passes a value of the post ID with the selection ...
0
votes
0answers
47 views

Form passing arguments by get causes 404

I'm printing a custom list table on a site introduced 2 filter methods for category and title: <form id="products-filter" action="http://localhost/?page_id=258" method="get"> <p> ...
0
votes
0answers
25 views

Easiest way to force buddypress users to fill in the form before joining group?

I have a groups and I want to force users to fill in the form before they join the group (declartion of something). As I think no plugin for now does that I want to ask you how to start? Thank you in ...