     //0x0d is a mistake input when write the cards
 
     //create a URI for the request
-    String url2 = "/AICP_YARD/attendance.php?staff_name=" + send_content;
+    String url2 = serverPHPUrl + "?staff_name=" + send_content;
 
     if (DEBUGMODE) Serial.print("Requesting URL: ");
     if (DEBUGMODE) Serial.println(url2);

  byte idBlock = 5;
  byte staff_name[18];  //16byte + 2byte CRC
  byte staff_id[18];
  String super_staff_id_1 = "";
  String super_staff_id_2 = "";
  String super_staff_id_3 = "";
  byte size = sizeof(staff_name);
  status = mfrc522.PCD_Authenticate(MFRC522::PICC_CMD_MF_AUTH_KEY_A, blockAddr, &newKey, &(mfrc522.uid));
  if (status != MFRC522::STATUS_OK) {
    if (DEBUGMODE) Serial.print(F("PCD_Authenticate() use default key failed"));
    if (DEBUGMODE) Serial.println(mfrc522.GetStatusCodeName(status));
    mfrc522.PICC_HaltA(); // Halt PICC
    mfrc522.PCD_StopCrypto1();  // Stop encryption on PCD
    return;
  }
  else {
    cardState = 1;
    if (DEBUGMODE) Serial.println(F("PCD_Authenticate() success: "));
  }

  //if (DEBUGMODE) Serial.print(nameBlock);
  //if (DEBUGMODE) Serial.println(F(" ..."));
  status = (MFRC522::StatusCode) mfrc522.MIFARE_Read(nameBlock, staff_name, &size);
  if (status != MFRC522::STATUS_OK) 
  {
    if (DEBUGMODE) Serial.print(F("MIFARE_Read() failed: "));
    if (DEBUGMODE) Serial.println(mfrc522.GetStatusCodeName(status));
    //cannot read name, don't open the door 
