how to pass the value in php file using Ajax.Request() function.The way i do use it's not working Wh

Posted by user309381 on Stack Overflow See other posts from Stack Overflow or by user309381
Published on 2010-04-07T00:45:14Z Indexed on 2010/04/07 1:13 UTC
Read the original article Hit count: 273

<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)) {
  ....
  }

© Stack Overflow or respective owner

Related posts about prototype

Related posts about javascript-framework