pretzelking - 2007-07-01

Hi I'm working on building application, but I need to find a way either inside a firefox extension or in php to find all the variables I need to submit a form, as well as find the value of 'action' inside the form tag. Also I would need to find out the form method ($_GET or $_POST).

So ideally, if If I told my application to search using the input box on Google, it would find and store these variables.

$submitVars['hl'] = "en";
$submitVars['btnG'] = "Google Search";

and find the form action was '/submit'

I know I'm out on a limb here, and frankly I'm at a loss of where to start with this. Would this be something easier to work into a firefox extension than into php? Or has anyone run into a class that might be able to help me?

Thanks a lot in advance.