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)

-2
votes
0answers
20 views

PHP code inside a WP page echo<html code> problem [on hold]

I've activated a plugin to use php inside a wp page. It'works but if I need to use html code within a php block, that statement is not considered. I need it to fill a listbox from database. e.g. ...
0
votes
0answers
13 views

Gravity Forms After Submission - GFFormsModel::update_lead_field_value?

I am working with Gravity Forms. This code works with a couple issues : add_action('gform_after_submission_14', 'post_contract_update', 10, 2); function post_contract_update($entry, $form) { ...
0
votes
1answer
28 views

Merge or combine two or more gravity forms

Q: Is it possible to merge or combine gravity forms? When you have (lots of) forms, which share (lots of) custom fields this would guarantee consistency across forms and simplify form creation. ...
-3
votes
0answers
18 views

How to store form submissions and edit their statuses in admin area?

The main idea is to create form (product purchase) and store submissions in DB. In admin area I need to assign statuses for each submission and assign completion to user role 'manager'. Create user ...
1
vote
2answers
43 views

Return to option page after running PHP script

I have an option screen for my plugin, it's just a simple form. <div class="wrap"> <h2>SoundCloud Podcast Importer Options</h2> <hr/> <h2>Add a ...
0
votes
0answers
7 views

Pre populate gravity form with admin only drop down of WP users

I am building a directory with GF + Directory addon (lovely) However, one glitch: I am creating the user accounts and the form entires to begin with - so a user that logs into their account later to ...
0
votes
0answers
27 views

Attach form output as TXT-file in notification email

(How) Is it possible to attach the form output (contact form 7 or similar) in a TXT-file with the notification email to the admin? Is it possible to make a template for this TXT-file with only some of ...
0
votes
1answer
49 views

Success message in comment form

I am using wordpress 3.8. I am using comment_form(); I need to display a success message on successfully posted comment on blog. How to do this?
0
votes
1answer
76 views

Using Multiple Submit buttons to trigger customised php functions

I may be going about this completely the wrong way but bear with me... I have a long guestlist that is automatically populated using a foreach table. I would like to put a 'No Show' button on this ...
0
votes
1answer
27 views

Username from e-mail

Which files do I have to edit to get a grip on $_POST data sent by the registration form? I want to explode $_POST['email'] and build an username from that. I simply want to allow people to register ...
0
votes
0answers
35 views

wp_usermeta key problem

I am trying to add a meta key to wp_usermeta but it does not work at all. The key would get value from a checkbox. I used the code from Wordpress codex tutorial and it's not adding anything. I will ...
0
votes
1answer
15 views

Custom registration field to SQL database

I have created new columns in a SQL table called wp_users. Those fields are "giodo", "handel" and "regulamin". What I want to do is to add '1' to each column when a user registers and selects ...
0
votes
0answers
33 views

Inserting into database from form issue

I'm trying to insert some data into a database before email sent with contact form 7. Currently it doesn't seem to be doing anything. My code is: add_action( 'wpcf7_before_send_mail', 'my_conversion' ...
0
votes
0answers
33 views

How to include editable PDF in wordpress

I need to include a Existing PDF in website, where user can either fill or download it. I tried to use visual form generator, but it doesn't like actual form and I need to allow a user signature. ...
1
vote
0answers
37 views

jQuery and AJAX Not working with Select Form Element

I seem to be having a strange issue with jQuery and a newly-created AJAX form/function. I'm pretty new to AJAX so please bear with me. Here's the jQuery: ...
1
vote
1answer
22 views

How can I do a URL redirection when an user uses wrong login details?

I have got this form for login from the front-end. <form action="<?php echo site_url('wp-login.php', 'login_post'); ?>" method="post" <?php /*id="login-page-form"*/ ?>> ...
1
vote
0answers
27 views

Search Query: how to construct a search string from two select elements?

Im trying to create a wordpress search widget. The final search string Im trying to submit is made up of two keywords, one each from a select element. I'd like the final search query to be ...
0
votes
0answers
44 views

Prevent multiple form submissions from one page

I have a problem with the end user form. Users can spam by just pressing all the time the add button. Is there a way to hide it or disable it when someone click the Wyslij button? I am using this ...
0
votes
1answer
31 views

Performing a POST action on homepage goes to posts page

On every page of my site I got a contact form that will send an email to the respective address. On this site also I've set the front page display to a static page. The contact form will basically ...
0
votes
1answer
14 views

Forms with multiple element types using custom post types

I am building a forms component and am looking for the following functionality. Each form would have multiple questions and multiple question types ( like text boxes, radio buttons, selection drop ...
0
votes
1answer
14 views

Copy and Paste Password for Comments

One of my newer clients has an extensive WordPress blog (on SE I am a Joomla man) and I am sure there must be some reason behind this. For comments it asks you to copy a password - and then paste ...
0
votes
1answer
80 views

Metabox radio buttons not saving correctly

I have multiple radio buttons set up inside of a metabox in a custom post type. I have created the metabox like so: add_action('admin_init', 'add_meta_boxes', 1); function add_meta_boxes() { ...
0
votes
0answers
21 views

form to post multiple inputs into post_content

I have a form, with multiple inputs that I am trying to get posted to the wordpress "post_content". I am able to get the title field and only one other field to post successfully, only when making a ...
0
votes
0answers
63 views

Displaying database table in backend of wordpress

So basically I'm working on a job website for a client where they post jobs and users can apply for these jobs with a form that writes to the database with their inputed information.. I have set up a ...
0
votes
1answer
33 views

using update_user_meta in form to set and get custom meta

I have a template where a user will set some custom meta values via a form on the front end of my site. I call this form via a function in my functions.php file. Currently when the text inputs are ...
0
votes
2answers
23 views

What form element names break wordpress?

I know that <input name="name"> will cause wp to bork and throw a 404. It seems that 'year' is the same. Does there exist a list of input names that wp doesnt like?
0
votes
1answer
26 views

Linking Plug-In Files to WP

I am writing a plug-in right now which adds a table to the database when activated. I have another file in my plug-in directory which handles a form submission and writes to the database. This file ...
0
votes
1answer
67 views

How do I setup nested repeatable option fields?

I'm trying to wrap my head around how to create a set of option fields that should be able to repeat for as many times as possible. But I'm having a hard time to figure out how to proceed. Currently ...
0
votes
0answers
39 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
1answer
93 views

Custom Contact Form Not Sending (but not giving error)

hope things are going well. I'm attempting to add a custom contact form to a section of home page. I came across a custom contact form at https://gist.github.com/hansspiess/6815875. I implemented the ...
0
votes
1answer
32 views

Only single mail function is working from double mail functions one after another on wordpress

I am having a html form in my wordpress page and i have call action on my form. The file which is calling an action is saved in the root of wordpress directory. sending-mail.php I have two mail ...
0
votes
0answers
108 views

Count Checked Checkboxes in Contact Form 7

I've built a form with Contact Form 7. The form is a petition. It has a list of checkboxes with names and email values attached to them. If a name is selected, that email is added to the list of ...
0
votes
0answers
49 views

Form Submit Post Front-end with Meta Boxes Included from Custom Post Type Called Testimonial

Before I post this question, I've seen many questions in here but I guess, it still makes me confused and have no idea to implemented it. Case: I've just made Testimonial Custom Post Type by WPtuts ...
0
votes
1answer
40 views

I am unable to save my data from a form

For some reason I am unable to save the data from my form: add_action( 'admin_menu', 'example_menu_settings' ); /** Step 1. */ function example_menu_settings() { add_options_page( 'example ...
0
votes
0answers
61 views

How to use the <form method=GET> in WP

I have a page that shows a products list. I need that when a user click on a product image a product page is shown. If I use this in my form: $retval .= '<form method=post action="'. str_replace( ...
0
votes
0answers
19 views

Wordpress Native Function To Show Publish Box, Select Categories Form etc On Plugin Page

The picture above showing the default forms those are available on metabox of wordpress post/page editor screen. Is there a wordpress native function to show those forms on a custom plugin page ...
1
vote
0answers
51 views

Post submit using shortcode and init

I'm trying to find the best way to return errors to a page once a form submitted by using a shortcode. I'm adding a function to init such as - add_action( 'init', 'contact_form_process_post' ); ...
1
vote
3answers
68 views

Post form as custom post

I'm new to WordPress and need to create a website including a special form, with which I can upload photos, set my position on an OpenStreetMap and choose from several dropdown menus. Here you can ...
0
votes
1answer
30 views

Widget front-end fails to echo as expected from checkbox

Context: This is my first widget and I am following along with an online tutorial. I am expecting the front-end of the widget to echo some content upon checking a check-box in the back-end form, but ...
0
votes
0answers
137 views

Edit User Profile From Front End

I have taken reference from this link. I have used Plugin cimy user extra fields for extra users' field. I have taken few extra fields such as picture upload and file upload. Now I want to edit ...
0
votes
1answer
88 views

How to redirect new WordPress user to previous page after registering

When a user registers for a WordPress site, they are redirected to the login page after completing the registration form. Is there a way to redirect them to the previous page before filling out the ...
0
votes
2answers
88 views

Front end file upload returning wrong attachment url

So I'm making a simple file uploader with wordpress where users don't need to go into wp-admin to add a file. I have it working great, it uploads the file to the correct folder..etc but the only ...
0
votes
1answer
28 views

Retrieving Login Data from Woocommerce and Putting it into a Form

So my goal is to try and retrieve the data from the account a user logs in with. e.g name,age, address and place this within a contact 7 form. So there name, age and address will appear already ...
0
votes
1answer
29 views

How to Use the Filter “sidebar_login_widget_form_args”

I need to rename some of the labels on the Sidebar Login form using the sidebar_login_widget_form_args" filter; I have been trying few days to do this without any success. I would very much ...
0
votes
1answer
42 views

jQuery form plugin, submit in the wordpress way

Trying to use jQuery form plugin in wordpress site to upload files. HTML markup: <form id="myForm" action="process.php" method="POST" enctype="multipart/form-data"> <input type="file" ...
0
votes
1answer
108 views

New User Form - Custom Menu Page

I have a question concerning creating a new user. I'm creating a plugin for this wp site I am working on. I have set up custom roles for these and I'd like to have a separate menu item for the "Owner" ...
0
votes
1answer
72 views

How to Process Form Request

So... I have a form build into a WordPress page like this: <form action="/help" method="GET"> <h2 class="heading post-title">Contact Us</h2> ...
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
53 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: ...