Hi all,
I have this problem, that I would like some advice about the best way to approach it:
I have "myserver/CodeGenerator.php" which creates a random number and displays it and adds it to mySQL database.
I want to want to be able to provide code that I give to various webmasters to include on their webpages that retrieves this random number.
My problem is this:
Using include(myserveraddress/CodeGenerator.php) would allow users to just hit refresh on their browser and a new code would be displayed. I only want the user to see the code once and if refreshed the same code should appear.
I presume that I can't use start_session() in CodeGenerator.php because it has to be integrated into the Webmasters page and that doesnt allow html code before hand.
I'm sure that there is a standard way of doing this but I don't know what it is.
Any help appreciated.
SR