Solved

How to add a hidden field to wordpress registration

Posted on 2010-08-23
3
822 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 110

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

733 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