Check if is a steamid

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 2
Joined: Thu May 30, 2013 12:16 pm

Check if is a steamid

Postby joaogl » Thu May 30, 2013 12:22 pm


I'm making a register form where the client has to type his steamid.
How can I check if it is a steamid?

example steamid's(random numbers by me):

I tried this but it gives me always an error.
if(empty($steamid) || !strpos($steamid,'STEAM_0:')) { $error = true; }

How can I do this?

php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Check if is a steamid

Postby seandisanti » Fri May 31, 2013 10:10 am

Make use of the steam API;

Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests