Is there any way to do this?

I have a text field asking for a search term and a drop down menu. The drop down menu will be say vbulletin forums and links directory. What i want is for the script to submit to search.php if forums are selected and search.cgi if links is selected. Does this make sense? There will also be hidden variables, it would be better if they could be associated with either one or other of the actions but it is not essential.

Any ideas on how to do this or do i need to have an intermediate script?