Jump to content

Archived

This topic is now archived and is closed to further replies.

Dobakat

Info help.

Recommended Posts

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..

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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 ) ]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.