I want to send RFID tag number to PHP page. So far I have sent a fixed string to php and it worked, now I am not getting data in string when i scan rfid tag. I want to store every RFID tag number in a string when it is scanned, so that I can send it to php page.
if (rfid.isCard()) { String rfid_uid = ""; if (rfid.readCardSerial()) { String rfid_uid = ""; for (int i = 0; i < 4; i++) { Serial.print(rfid.serNum[i], HEX); rfid_uid = rfid.serNum[i]; } Serial.println(); } //delay(7000); Serial.print("User ID \n"); Serial.println(rfid_uid); make_request(rfid_uid); } This is the path to php page
String method = "GET /ethernet/data.php?rfid_uid=";