Is it possible to pass the value in php file using Ajax.Request?

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 0:53 UTC
Read the original article Hit count: 334

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

© Stack Overflow or respective owner

Related posts about prototype

Related posts about javascript-framework