Folks,
Look at this form….
““
<form method=”GET” name=”search” id=”search” action=<?php echo $_SERVER[‘PHP_SELF’];?>?keywords=$keywords&limit=$limit&page=1>
<label for=”keywords”>Keywords</label>
<input type=”text” name=”keywords” id=”keywords” placeholder=”Type keywords”>
<br>
<label for=”result_limit”>Limit</label>
<select name=”result_limit” id=”result_limit”>
<option value=””></option>
<option value=”1″>1</option>
<option value=”10″>10</option>
<option value=”50″>50</option>
<option value=”100″>100</option>
<option value=”500″>500</option>
<option value=”1000″>1000</option>
</select>
Notice the url where it will be submitted.
It should be:
But instead, I am forwarded to:
Q1. Why “result_limit=” and not” “result=”?
Q2. How to rid “search=+” so that doesn’t show up on destination url ?