Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Move search to get"

This reverts commit d59fea4.
  • Loading branch information...
commit 05bf6b8e97df50f3b12307e79e8d9988ceb09dd6 1 parent d59fea4
@seejohnrun seejohnrun authored
View
3  application/controllers/ajax/search.php
@@ -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'))
{
View
2  application/views/global/_new_header.php
@@ -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>
View
2  application/views/search/listing.php
@@ -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" />
Please sign in to comment.
Something went wrong with that request. Please try again.