I have a question about referrals for my wordpress blog. This might be more of a PHP question than a wordpress question. After I manage to add the field to the sign-up page where the user can add a referral ID, how do I add the functionality where that referral ID can be inserted automatically in the sign-in page? I know that in PHP you can add strings at the end of a URL like?this or like?this=that but how does one make sure that this translates to a string being added to a field in the web page?
Page 1 of 1
php with wordpress
#2
Posted 04 September 2010 - 11:37 PM
With the example you gave:
It should print
http://www.w3schools...PHP/php_get.asp
<?php // for example: thispage.php?this=magic $val = $_GET['this']; echo "this is: $val"; ?>
It should print
Quote
this is: magic
http://www.w3schools...PHP/php_get.asp
#3
Posted 27 September 2010 - 07:55 AM
The sign-up page, in wordpress, where I want to have the referral space, uses a plug-in to add fields. Unfortunately, the referral space is not one of the fields. How do I add a custom field seperate from the plug-in.
I think solving this problem might be complex. I wonder where I should start.
I think I am going to have to re-open the proverbial can of worms and go back into my study of how plugins are written in order to make this happen.
I think solving this problem might be complex. I wonder where I should start.
I think I am going to have to re-open the proverbial can of worms and go back into my study of how plugins are written in order to make this happen.
- ← WordPress plugin for this?
- Content Management Systems (CMS)
- Spry Drop down menu won't preview well locally →
Share this topic:
Page 1 of 1
Help
















