「電話」入力も入力する必要があるサインアップフォームページを作成していますが、電話フィールドは8桁である必要があります!!! ユーザーが8桁以上または8桁未満の数字を入力すると、サインアップフォームはエラーを伝えます。
このようになるはずです... DBに接続した後
$telephone=$_POST['telephone'];
...
....
if(empty($telephone)){ // **i think i should write smth here???**
echo "phone number not set, and should be 8 digits!!" ;
}
else{
/* Now we will write a query to insert user details into database */
$insert_user=mysql_query("INSERT INTO login (telephone) VALUES ('$telephone')");
私は助けに感謝します:)ありがとう