?
Solved

How to add a hidden field to wordpress registration

Posted on 2010-08-23
3
Medium Priority
?
846 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 111

Accepted Solution

by:
Ray Paseur earned 1000 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 1000 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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 …
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

771 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