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
https://forums.phpfreaks.com/topic/212156-last-help-with-referral-link/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.