Update data from Html to .rsc file

Hi,

Can any one help me on How to Change IP in Html form and data getting updated in .rsc file which i can run in mikrotik using import.


Like im using centos 7 as a web server i want update Mikrotik IP Address through HTML form and data should store in .rsc file as a mikrotik script which i can send to mikrotik using tool fetch and interface IP of mikrotik will change.

can some one tell me how to achieve the same.