Можно ещё так: https://ru.stackoverflow.com/questions/465226/%D0%9A%D0%B0%D0%BA-%D0%BF%D0%B5%D1%80%D0%B5%D0%B4%D0%B0%D1%82%D1%8C-%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5-%D0%B8%D0%B7-form2-%D0%B2-form1-%D0%BD%D0%B5-%D0%B7%D0%B0%D0%BA%D1%80%D1%8B%D0%B2%D0%B0%D1%8F-%D1%84%D0%BE%D1%80%D0%BC%D1%8B?rq=1