Oh, there's plenty of stuff written already in these forums about how one can use wget with PHP. A search for wget should have turned something up when you first looked. For submitting forms there are at least two major methods, both described in the manual; the network functions would provide the code for the leanest solution.