Solved

How to add a hidden field to wordpress registration

Posted on 2010-08-23
3
797 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 108

Accepted Solution

by:
Ray Paseur earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for looking into it. I have another programmer that helped me out. It's not easy but we got it.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
This video teaches users how to migrate an existing Wordpress website to a new domain.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now