Solved

How to add a hidden field to wordpress registration

Posted on 2010-08-23
3
816 Views
Last Modified: 2012-05-10
Hello, i have a plugin for extra fields in wordpress but I need the registration form to add a promo code depending on where they came from.

For example I have the link set as: have a link "http://getpirelli.com/NEWS/wp-login.php?action=register&pcode=new2010"

I would like the registration form to grab "pcode" and put it in the field promo_code within the user database. then I can just change the links per each promo. this way we can track what promo the users signed up for. I know it's doable, but I'm not good enough with PHP.
0
Comment
Question by:remedy_rider
3 Comments
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 33502242
You should probably hire a WP developer to help with this.  It is easy if you know WP and PHP.

In the script that runs wp-login, you will find an array named $_GET.  The field $_GET["pcode"] = 'new2010'

That is probably what you want to put into the data base to track the promos.  It's a pretty standard set up.

Best of luck with it, ~Ray
0
 
LVL 3

Assisted Solution

by:jezweb
jezweb earned 250 total points
ID: 33530606
I agree with Ray, hiring someone would be my first choice. If you want something to look at in terms of code that might point you towards a way of doing it then perhaps this could help

http://www.problogdesign.com/how-to/how-to-create-a-wordpress-login-form-overlay/

0
 

Author Comment

by:remedy_rider
ID: 33531255
Thanks for looking into it. I have another programmer that helped me out. It's not easy but we got it.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question