Hi,
I am trying to send input from a form to do a live php boolean search. so an example
search string is
'+neoflex +standard +output -green'
the problem is something is filtering the '+' and i can figure out to to send it.
here is the html and js that i am using.
<input type="text" id="prodid" name="prodid" />
function autosearch(element)
{ new Ajax.Request('ajax-search.php',
{ method: 'post',
postBody: element.name + '=' + escape(element.value),
onComplete: showResponse
});
return false;
}
{ new Ajax.Request('ajax-search.php',
{ method: 'post',
postBody: element.name + '=' + escape(element.value),
onComplete: showResponse
});
return false;
}
ajax-search.php just echos (for testing right now)
$_POST['proddes']
'neoflex standard output -green'
This demo does the same thing if you enter something like '+jack' or 'jack+jill'
any ideas?
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs