I'm having a problem figuring out how to process multiple actions in a single form. <form action="Something.php" method="get" name="form1" id="form1"> <input name="q" type="text" id="q" value="" size="50" /> <input name="submit" type="submit" value="Search" onclick="javascript: onButton();" /></form> Code (markup): I understand the javascript part to process multiple actions then submit to both something.php and something2.php but I can't get the "name" part to work correctly. eg: in input name="q"... line, whatever typed in here only processes the first file(something.php) is there a way to process the other file (something2.php) using what was typed in "input name="q"..." line?