Php link

hy…

can someone give me some script…here i will explain…
http://www.phphelp.com/forum/index.php?…user=*&key=
and when that link is opened…it automaticly save username and key on txt or another file…and later…

mysite.com/post.php?usrname=admin&key=8794
and it shood save
Username: admin
Key: 8794
…and i coud brows all this keys…bechouse there will be nearly houndread of them…:slight_smile:

thanks :slight_smile:

Take a look at this -> http://www.w3schools.com/php/php_get.asp to understand $_GET methods.

[php]

<?php $file=fopen("file.txt", 'w') or die("can't open file"); if (isset($_GET["usrname"]) && isset($_GET["key"])) { fwrite($file, "Username: " . $_GET["usrname"] . "\n"); fwrite($file, "Key: " . $_GET["key"]); fclose($file); } else { echo 'enter something'; } ?>

[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service