MyISAM does not support foreign keys, sadly. If you want to know why that is and how MySQL can still be called a relational database, that’s something only the MySQL developers can answer.
But free hosting does not support any storage engine with support for foreign keys. So any foreign key consistencies will have to be enforced by the application code.