I am currently working an Online Birth Certificate Registration System using blockchain for my final year project. I have incorporated Moralis in my project to handle the users and linked it to Ganache. I am asking if anyone could tell me how to save information from an html form into the blockchain. I have checked online but no one seems to have the exact answers I'm looking for. Below is the HTML form as well as the Smart contract: When I click on "add details", I want all the information collected to be saved to the blockchain.
contract Obdrs {
uint256 dateOfBirth; //save date as unix timestamp or use a string
string gender;
string fullName;
string placeOfBirth;
string motherFullname;
string motherNrc;
string fatherFullname;
string fatherNrc;
string bo; //birthOccurence
string permanentAddress;
string contactNumber;
//... with all of your properties
function storeBirthCertificate(uint256 _dateOfBirth, string calldata _gender, string calldata _fullName,
string calldata _placeOfBirth, string calldata _motherFullname, string calldata _motherNrc, string calldata _fatherFullname,
string calldata _fatherNrc, string calldata _bo, string calldata _permanentAddress, string calldata _contactNumber) public {
dateOfBirth = _dateOfBirth;
gender = _gender;
fullName = _fullName;
placeOfBirth = _placeOfBirth;
motherFullname = _motherFullname;
motherNrc = _motherNrc;
fatherFullname = _fatherFullname;
fatherNrc = _fatherNrc;
b0 = _bo;
permanentAddress = _permanentAddress;
contactNumber = _contactNumber;
}
}```