user1738017
user1738017

Reputation: 627

saving url parameters on page load/click

<a href="http://www.example.co.uk?id=<?=rand(1, 1000000); ?>"> ....

I have this link, I need to save the random id into a text file every time the page is refreshed, or every time the link is actually clicked (whichever is easiest).

Upvotes: 0

Views: 103

Answers (1)

aleation
aleation

Reputation: 4834

see fopen() and fwrite() for handling files. And please research a bit on google or something, or on php.net before asking :D

Upvotes: 1

Related Questions