Nature of my goal:
I'am building an affiliate program that pays commissions to affiliates PayPal account.
Problem:
If an affiliate url is like index.php?refer=paypal@mail.com
and I use PHP code on the "Continue page" on an HTML link -
This works decent, but what if the URL does not have a "refer" variable?PHP Code:<a href="offerpage.php<?php $ref = $_GET['refer'];echo "?refer=$ref"; ?>">Continue to offer</a>
ie: mysite.com/index.php
How can I set it up so that it checks whether or not a value for "refer" exists, and if not than make the link like so-
mysite.com/offerpage.php?refer=mypaypal@mail.com
I hope this is not too confusing
Best Regards
~Ross![]()




Reply With Quote

Bookmarks