Jump to content

Last help with referral link


HDMICable

Recommended Posts

Hello friends!

I just need the last help to have everything working ok.

 

I'm having an issue because the input won't show the referral ID.

 

Here is the .htaccess code:

/*This changes the URL mysite.com/reg.php/referral.html to mysite.com/reg.php?referral*/

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^reg.php/(.*)\.html$ http://www.mysite/reg.php?$1

 

 

Then the code in the reg.php page:

if($_COOKIE['referido'])
{
$ref = $_COOKIE['referido'];
} else {
$ref = $do->get_r_file_url();
$ref = str_replace(array(".html", "/"), "", $ref);
if(eregi('.php', $ref)) { $ref=false; }
setcookie("referido", $ref, time()+60*60*24*30);
}



And then the input:
<input size='3' style='width:170px;' id='referral' type='hidden' name='6' value='{$ref}' >

 

 

So how do I do to make the input show the referral ID?

 

 

Thanks!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.