Permalink
Browse files

Revert "Move search to get"

This reverts commit d59fea4.
  • Loading branch information...
1 parent d59fea4 commit 05bf6b8e97df50f3b12307e79e8d9988ceb09dd6 @seejohnrun seejohnrun committed Feb 23, 2012
@@ -16,11 +16,12 @@ function index()
$this->load->helper('form');
$this->load->library('form_validation');
+ $submit = $this->input->post('submit');
$search_results = array();
$search_term = $this->input->get_post('term', TRUE);
- if($search_term)
+ if($submit)
{
if($this->form_validation->run('search'))
{
@@ -45,7 +45,7 @@
<dd><a href="/about">About</a></dd>
</dl>
<dl style="float:right">
- <dd><form action="/search" method="get" id="headersearch"><input type="text" name="term" value="" class="text-box" /><input type="submit" name="submit" class="submit" value="Search" /></form></dd>
+ <dd><form action="/search" method="post" id="headersearch"><input type="text" name="term" value="" class="text-box" /><input type="submit" name="submit" class="submit" value="Search" /></form></dd>
</dl>
</div>
</div>
@@ -6,7 +6,7 @@
<p><?php echo $description; ?></p>
<div id="mainsearch">
- <form action="/search" method="get">
+ <form action="/search" method="post">
<fieldset>
<label for="term">Search term</label>
<br class="clear" />

0 comments on commit 05bf6b8

Please sign in to comment.