in reply to Is $formdata present?

Possibly OT wrt your actual question - I must admit I didn't even read it carefully.

I have only extremely limited experience myself. But they all recommend to avoid reinventing the wheel with the risk of doing it wrong and

use CGI;
instead. And I mean experienced hackers that could well reinvent the wheel...