Tagged Questions

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

How can I make a redirect depending on the selection in the dropdown menu (CONTACT FORM 7) [on hold]

How can I make a redirect depending on the selection in the dropdown, example: I have a select with two options when I choose an option to send the email it redirects me to a page, if I choose the ...
0
votes
0answers
25 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 ...
-4
votes
0answers
13 views

Can I get the checkout form into a template? [closed]

Hi I am using woocomemrce and was wondering would it be possible to get the checkout form and payment stuff onto another page? I want to create a template which will have a single product on and the ...
-1
votes
0answers
14 views

Opinion : Wordpress as a platform ? [closed]

I'm have experience in WordPress, not for something this complex. I have a client with a complex set of requirements, I would like your opinion/validation on the approach I have come up with. I ...
-1
votes
0answers
17 views

How to handle form post

I have a form under Contact category, but I'm totally lost on how to manipulate the data once it has been POSTED. Where do I have to look for? I want to add a function that let's me register the user ...
0
votes
0answers
13 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
25 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
18 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
18 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
30 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
49 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
29 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
17 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
28 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 ...
-1
votes
0answers
19 views

Simple if else statement for form not working

I am a starting wordpress developer trying to create a very simple form. However my if/else statement is not working in the code below as the if statement doesnt run after clicking submit. Anyone got ...
0
votes
0answers
13 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
20 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
39 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
12 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
19 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
44 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
177 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
25 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
20 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
35 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
51 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
84 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
48 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
35 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
40 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
18 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
70 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
141 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
54 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
22 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
36 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
31 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
155 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
21 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
39 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
28 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
36 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
46 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" ...
0
votes
1answer
118 views

Adding data to custom wordpress database table

I have a form on a page that populates the database table: <table border="1"> <tr> <td align="center">Form Input Employees Data</td> </tr> <tr> ...
0
votes
1answer
145 views

Simple form validation for custom post type in front end. Not working

So everything is working fine except for the validation. The error messages don't display when the form is submitted empty and you can still submit the form when empty. I must be missing something ...
0
votes
0answers
74 views

Search inside a custom taxonomy for multiple words doesn't return anything

My goal is to perform a search inside a custom taxonomy field. The page is an archive including a lot of books and magazines, and they have to be searched through, let's say, 'Authors','Title' and ...