[eluser]Unknown[/eluser]
Hi Jedd thanks for your response. I haven't tried the absolute path. I will give it a try and see what comes out of it. What I am trying to accomplish is using the form created by the previous programmer. He created this form inside a varible in the index function of the contact form controller. Example:
class Contact extends Controller {
function index()
{
$this->load->helper('url');
$content = <<<EOD
<form id="contact-form" action="send_email.php" method="POST">
[html form code here]
</form>
}
$this->load->view('template', array("pageTitle" => "Contact Us", "pageContent" => $content,"pageSel" =>contact" ) );
}}
As you can see my modification was to add the action="send_email.php" method="POST" hoping that should work with like I would with a regular site without the CI framework. But that didn't work. I tried placing send_email.php in the application folder but that did not work. I will try the absolute path.
In the long run I can see the work put into building a site with a CI framework can be modular and easy to maintain down the road. Of course, done according to how the framework was intended to be used.
PS: I tried the absolute path that will not work when RewriteRule ^(.*)$ /index.php/$1 [L] is on. When that is removed it works. Is there a way to have the RewriteRule turn on and still have the absolute path work?