how to pass the value in php file using Ajax.Request() function.The way i do use it's not working Wh
- by user309381
<html><head>
function reload(form) {
var val = $('seltab').getValue();
new Ajax.Request('Website.php?$cat = val',
{
method:'post',
onSuccess: function(transport) {
.....
</head>
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)) {
....
}