[eluser]stormlead[/eluser]
hi!
now tried doing this
i created one more controller and a view for the search form.
and i called the controller inside the page using include function like below
the code for search controller is as below
Code:
<?php
class Form extends Controller {
function index()
{
$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
$this->load->view('search');
}
}
?>
and for the search view is as follows
Code:
<html>
<head>
<title>My Form</title>
</head>
<body>
<h3> </h3>
<?php echo form_open('form'); ?>
<table width="614" border="0">
<tr>
<td width="312"><input type="text" name="srchbox" size="50" ></td>
<td width="292"><input type="submit" name="srch" value="Search" ></td>
</tr>
</table>
</form>
</body>
</html>
it is giving me warnings
A PHP Error was encountered
Severity: Warning
Message: include_once(search) [function.include-once]: failed to open stream: No such file or directory
Filename: views/formsuccess.php
Line Number: 9
A PHP Error was encountered
Severity: Warning
Message: include_once() [function.include]: Failed opening 'search' for inclusion (include_path='.;C:\php5\pear')
Filename: views/formsuccess.php
Line Number: 9
doono whats the problem????