PHP can't do anything to forms. In that case, you should get the html form (curl
is an option. Then parse the form to get the forms method (get/post), it's action (url), and all input names.
For that you could use something like xpath
From there, you submit another request, by crafting the data from given information above.