First off, forgive my lack of knowledge in php, that is a world I have yet to really delve into! So, I am trying to use the contact form while giving the user the opportunity to select which part of the company to contact. Moreover, instead of sending to A@email.com, B@email.com, C@email.com.. I am trying to have them select via a select box to email A@email.com with Form1, B@email.com with Form2, and so on.
I have created a select box that hides and shows different forms within the contact form page, and I have located the indexController.php (Mage/Contacts/controllers/IndexController.php) where the form action is being used. I have also seen where the recipient can be changed, my only confusion is to what exactly I could duplicate to get this desired effect to work all on the same page.
I believe the form is being called via
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
Which directs to the indexController.php, and I have found help that would allow me to change and send the email to multiple recipients, but my goal is to send to a single recipient, but have multiple instances of the form.
I imagine I would want to have multiple instances of postAction but unsure where to relabel them/call them in the form.phtml to allow for the different locations.