Is it possible to pass the value in php file using Ajax.Request?
- by user309381
function reload(form) {
var val = $('seltab').getValue();
new Ajax.Request('Website.php?$cat = val', {
method:'post',
onSuccess: function(transport){
.....
code in php:
echo "<select id = seltab onchange='reload(this.form)'>";
$querysel = "SELECT title_id,author FROM authors NATURAL JOIN books";
$result1 = mysql_query($querysel) ;
while($rowID = mysql_fetch_assoc($result1))
{