Web Design Forum: php with wordpress - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

php with wordpress Rate Topic: -----

#1 User is offline   Xarzu 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 25
  • Joined: 30-January 10
  • Reputation: 0

Posted 04 September 2010 - 11:29 PM

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?
0

#2 User is offline   bocaj 

  • Retired
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 3,402
  • Joined: 11-January 09
  • Reputation: 99
  • Gender:Male
  • Location:New Sarum
  • Experience:Web Guru
  • Area of Expertise:Entrepreneur

Posted 04 September 2010 - 11:37 PM

With the example you gave:

<?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
0

#3 User is offline   Xarzu 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 25
  • Joined: 30-January 10
  • Reputation: 0

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users