How do I pass a path variable in html action form of a specific parameter .

For example:
Http:localhost:8080/api/customer/{id}
If I post in postman instead of Id a parameter it will work fine ,
But in html Im asking the user for an input and than I want to pass the input in the path instead of the Id
Is it possible ? Only spring boot and html .

Thanks in advance