Random Text Rotator - Question

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
code2change
Posts: 1
Joined: Tue Nov 22, 2016 2:51 am

Random Text Rotator - Question

Post 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?
Klemen
Site Admin
Posts: 10114
Joined: Fri Feb 11, 2005 4:04 pm

Re: Random Text Rotator - Question

Post 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)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply