How can I register a mobile phone or email address? How can I register a mobile phone or email in a text box ?, This involves the API interface, & nbsp; mobile phone registration: & nbsp; you can use the SMS interface to send a verification code, and then check whether the verification code is correct in the text box. & nbsp; email registration: & nbsp; how to register a mobile phone or email?
How can I register a mobile phone or email in a text box?
------ Solution --------------------
This involves the API interface,
Mobile phone registration:
You can use the SMS interface to send a verification code and then check whether the verification code is correct in the text box.
Email registration:
Send an email to the email address, click the link for the operator, register the email,
In general, the difficulty lies in finding api interfaces,
I know about mobile phone text messages on chinam.com (Baidu searches for them, and then he provides five text messages for free testing)
You can find an api development email,
------ Solution --------------------
PHP code
If (is_numeric ($ _ POST ['name']) {$ SQL = "insert into user (id, email, tel) values ('','', '{$ _ POST ['name']}') "; // mobile phone} else {$ SQL =" insert into user (id, email, tel) values ('', '{$ _ POST ['name']}', '')"; // email} mysql_query ($ SQL );