<script src="http://code.jquery.com/jquery-latest.js"></script> //for reference

Code Java:
function nameList(){
	url ="post-json.php?action=search&keyword="+$("#keyword").val()+"&additionalInfo=whatever";

Normally this works, the problem is when i write two words in the input box the value isnt getting passed properly to the php side.

alert(url) = post-json.php?action=search&listName=two words&additionalInfo=whatever

error_log("REQUEST_URI = ".$_SERVER['REQUEST_URI']);
error_log("Keyword = ".$_REQUEST['keyword']);

REQUEST_URI = /post-json.php?action-search&keyword=two
Keyword = two

any one know how to get both words from the input box?