0
votes
1answer
33 views

How to redirect to a page after the form is submitted

I am New to Wordpress.I am creating a Plugin Where I have to import a csv File to database.Uploaded and Entered data Successfully.But my Problem is once the file gets uploaded it shows a blank page ...
0
votes
1answer
32 views

Creating wordpress user registration form

I am having a form page called Test Form with this form : <div id="container"> <form action="wp-content/themes/max-magazine/TestForm.php" method="post" name="myForm"> User <input ...
0
votes
1answer
22 views

Make a page (url) not cacheable [closed]

How to setup a wordpress-page in wordpress as non-cacheable in wordpress? I have made up a form manually for a page(wordpress) and I want to make that page not cacheable by browsers. How can it be ...
1
vote
1answer
41 views

wp_mail file attachment not being placed in upload folder?

I have a form where I want users to be able to select an image to upload. The image gets temporarily uploaded to the wp-content/uploads folder, is attached to the e-mail and then is destroyed. Right ...
0
votes
0answers
29 views

Saving custom form fields

I am creating a plugin. So far I have created a menu and a page containing the form. I want to save these form fields for any user with 'Doctors' role. I think it should be saved under wp_usermeta ...
0
votes
0answers
17 views

Contact form with dynamic recipient

I am creating profiles of people where each person is a custompost; I need my customposts have a contact form send mail to different recipient. I have already created a Metabox in which to put the ...
0
votes
1answer
22 views

Redirect loop upon installation of my plugin

I have created a plugin that uses a shortcode [MyCreditStatus] to display a form (multi-page form). This plugin uses an API that I also made. When I try to install the plugin, there are times that ...
0
votes
1answer
48 views

Ajax contact form return 0

I have a contact form that I want to submit using ajax. It seems like send the data, but the only retrieved is 0. HTML form: <form method="post" ...
0
votes
1answer
41 views

How do I convince this button to do something when it is clicked?

I'm trying to use ajax to give me an alert when I click a button. Eventually I want it to do some form validation, but for now I would be happy just to see the alert. I've read the docs and about a ...
0
votes
1answer
37 views

Echo out element to another page.

I have a small plugin that displays how many submissions are left on current ninja form. And writes it out as so <p id="submissions-left">hurry only 25 submission left. <\p> And tacks ...
0
votes
1answer
30 views

Headers for Contact Form are wrong

I am using a simple contact form I created myself that consists of just a script (php) and a WordPress shortcode. It works fine except the headers are saying something like foo@somewebhosting.server54 ...
0
votes
0answers
44 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
536 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 ...
1
vote
0answers
58 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
1answer
254 views

Metabox repeating fields - 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
1answer
126 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
2answers
124 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
183 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
196 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
135 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 ...
1
vote
0answers
62 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 ...
0
votes
0answers
29 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
3k views

Simple form that saves to database

I am using a 3rd party service that does a scrub of my database for new entries within a specific table. However I am been unable to find a simple form plugin that submits data to the wordpress ...
0
votes
0answers
222 views

Display default WordPress login/registration form into a modal window

hope someone can help me with this. I need to display the default WordPress login/registration into a modal window. I followed this tutorial in order to create the modal box and it is just exactly ...
0
votes
0answers
47 views

How to set a Maximum Image size to a Field in WordPress

I have a customized frontend form in WordPress that allows to set a featured image to a post before publishing it. I want to set a maximum-allowed "width" as well as a "height" to the "upload image" ...
0
votes
1answer
127 views

Using Nonce for my Form

Essentially I need to verify my data using a nonce, but I'm not sure that I'm doing it right. What I'm trying to do is remove a menu option for a user that isn't an admin. If a checkbox is checked and ...
0
votes
0answers
179 views

Download html textarea content as a file

I am working on a project where the requirement is to download a textarea content as a .txt file on a wordpress site. <html> <body> <form action="#" method="post"> <textarea ...
1
vote
1answer
116 views

Custom profile field with birthday. Troubles with <select>

I made custom profile fields for birthday data. function my_user_field( $user ) { $birthday_day = esc_attr( get_the_author_meta( 'birthday_day', $user->ID ) ); ...
0
votes
1answer
221 views

Form Security: nonce vs. jQuery

I am trying to create a methodology for submitting forms on my WordPress site. In the past, I have used WordPress nonces in order to secure form submission, but I like the idea of using jQuery to ...
0
votes
5answers
717 views

How to trigger $_GET request within admin plugin page?

I have this form in my plugin function: <form method="get" action="" enctype="multipart/form-data"> <p class="submit"> <input type="hidden" name="do_it_hidden" value="run"> ...
0
votes
1answer
107 views

POST from jQuery to PHP

I have a form that passes field values to jQuery, which validates the fields and creates the variables being sent in data: {} in the snippet below. $.ajax({ type: "POST", url: "<?php ...
0
votes
1answer
111 views

WordpressUser Submission Form

I have a User Post Submission form, and it has three issues, as well as one potential issue. Here is the code that processes the form. <?php if(isset($_POST['user_submission_form'])) { ...
0
votes
0answers
110 views

User driven content problems

I am trying to build a website that will allow users to post from the front end. I need to be able to have the user enter a title, a category, and tags. For the content of the post, I would ideally ...
2
votes
4answers
4k views

How to stop form resubmission on page refresh

Hi I have a form that adds attachments to a post, however when the form posts it obviously doesn't show the post with the new attachment echoing "your file has been uploaded". When the user refreshes ...
0
votes
1answer
612 views

Display multi-select box choices in a bullet list

I have a form that includes a multi-select box. <form method="POST" action=""> <select name="countries[]" size="5" multiple="true"> <option ...
0
votes
1answer
276 views

How to put a form with php code into a variable or shortcode?

I'm trying to put my frontend form into a variable or a shortcode so I can wrap another shortcode around it (specifically Bainternet Post Creation Limits). My form has PHP code in it so I'm not ...
0
votes
3answers
141 views

Trouble using wordpress functions in a pop-up modal form

I'm working on a plugin and I've added a button to the tinymce editor that pops up a modal form, with options for the shortcode, and then inserts the shortcode with the selected options in to the ...
1
vote
0answers
344 views

Single Multisite Signup Page [closed]

I'm trying to turn the WordPress multsite signup page into a one step process instead of two. I'm wanting people to choose their username, email, password and a confirmation of their password, along ...
1
vote
2answers
3k views

Inserting Gravity Form checkbox values into Advanced Custom Fields

I'm trying to feed checkbox values from a Gravity Forms form (which creates a new post) into an Advanced Custom Fields field. I've had a read around and found some info in a post (at the bottom of the ...
0
votes
3answers
379 views

Get Admin Email Address From External PHP page

I am setting up a "built in" contact form that I need to pull the administrators email address from an external php page. For instance, my form action="path/to/process_form.php" Within that ...
0
votes
1answer
218 views

Page Options Saving But Not Updating In Backend

I have created a custom options page for a slider that you can upload slides to. Everything works great except when trying to save the data. It will get saved and I can use it on the front end. But ...
1
vote
2answers
389 views

How to create and work with custom data / tables (i.e., for arbitrary data)?

Getting started on Wordpress just today. I noticed that Wordpress created tables in a mySql database (with name *.wrdp1) when I first set it up. These tables cover comments, posts, users, and some ...
3
votes
2answers
880 views

How to insert PHP code in a WordPress Post

I need to insert into post a simple form handler, but WordPress' engine deleted my code after saving. how can I fix it?
0
votes
3answers
1k views

Can a page contain php code?

I am trying to use the following line of PHP code in one of my pages: <input name="from" id="from" value="<?php echo $_GET['from'];?>" type="text" /> But instead of displaying an empty ...
0
votes
2answers
162 views

Trying do build a contact form

I have some problem making my contact form work. The contact form should only be in one simple site. So i created two templates. The first template only has the form. The other one have the php code ...
0
votes
1answer
611 views

What should I write in the post action of this front end post form?

I'm following this tutorial to build a front end form: <?php /** * * New Post Form for Custom Post Types for the Frontend of Your Site * By Jared Williams - http://new2wp.com * * Last ...
0
votes
2answers
122 views

Force string into signup form

I am running WP multi-site and BP. The plugin in question is Anti-Splog by WPMUDEV. They have advised they do not support customisations. Anti-Splog tries to limit spam blogs from appearing on your ...
1
vote
1answer
1k views

Passing POST data from one WP post to another

I'm trying to pass data between two Wordpress posts via POST method from a form/link. However, the second post does not seem to be able to grab the POST data. I'm wondering if it has anything to do ...
0
votes
1answer
315 views

“operation successful” message

i'm writing some custom wordpress pages, and i want that after an action where the user has addess an item to a list (after the user press the submit button and the page reloads showing the updated ...
1
vote
1answer
149 views

Adding Custom Forms

I'm looking to create a page for a wedding site that will have a form. The idea is that it is an RSVP page where a visitor will input a unique string that was on the invitation that they received and ...