Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Check if is a steamid

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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?
New php-forum User
New php-forum User
Posts: 1
Joined: Thu May 30, 2013 12:16 pm

Re: Check if is a steamid

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

Make use of the steam API;
php-forum Fan User
php-forum Fan User
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.