Page 1 of 1

Random Text Rotator - Question

Posted: Tue Nov 22, 2016 3:04 am
by code2change
Using latest version of the script. I am not a coder and trying to get a link working quoted below

<a href="http://thisdomaintest.org/signup.php?aff=xxxxxxx">Join here!</a>

to replace xxxxxxx with the random text, <?php $_GET['type'] = 0; include 'rantex.php'; ?>

but cannot get it working. What is the proper HTML syntax?

Re: Random Text Rotator - Question

Posted: Tue Nov 22, 2016 11:36 am
by Klemen
On a PHP page, you would use something like

Code: Select all

<a href="http://thisdomaintest.org/signup.php?aff=<?php $_GET['type'] = 0; include 'rantex.php'; ?>">Join here!</a>
Depending on how you populate random IDs you might also need to modify rantex.php final lines of code from

Code: Select all

else
{
	echo $txt;
}
?>
to exactly

Code: Select all

else
{
	echo trim($txt);
}
(note that the final ?> was removed too)