Dobakat Posted May 28, 2006 Share Posted May 28, 2006 Well I have a clan page for a game calleld tibia. For user to register at my site I want them to prove that the y own a character in the real game. I give them a random code so they put in the comment part of their character status..a page that looks like this..[a href=\"http://www.tibia.com/community/?subtopic=character\" target=\"_blank\"]http://www.tibia.com/community/?subtopic=character[/a]Then I want to check that they putted the code and allow them to keep going with their registration. The only problem is that I don't know how to amke it look for the code..Can someone please help me.. Quote Link to comment https://forums.phpfreaks.com/topic/10664-info-help/ Share on other sites More sharing options...
poirot Posted May 28, 2006 Share Posted May 28, 2006 OK, you can use PHP's file handling functions.[a href=\"http://www.php.net/fopen\" target=\"_blank\"]http://www.php.net/fopen[/a] (if allow_url_fopen is enabled).But this means you'd need an URL that opens the profile page (directly), or you would have more trouble, coding something that sends POST as well. Actually I coded something like that for you once:[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=91480\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=91480[/a] Quote Link to comment https://forums.phpfreaks.com/topic/10664-info-help/#findComment-39806 Share on other sites More sharing options...
poirot Posted May 29, 2006 Share Posted May 29, 2006 You just need to use strstr() to check if the random code is in the comments:[a href=\"http://www.php.net/strstr\" target=\"_blank\"]http://www.php.net/strstr[/a][ strstr( haystack, needle ) ] Quote Link to comment https://forums.phpfreaks.com/topic/10664-info-help/#findComment-39873 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.