1 Replies - 282 Views - Last Post: 28 August 2010 - 08:01 AM

#1 czach  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 49
  • Joined: 02-October 09

got a problem with ajax... please help!..

Posted 28 August 2010 - 06:52 AM

i have this text box and a button where i will input something and save it in my database...

and this is the code where the ajax is included...

$("#test").click(function(){
    $val = $("#user").val()

    $.ajax({
        url: "system/application/?mclts_c/save_test",
        type: "POST",
        datatype: "html",
        data: "user=$val",
        success: function(html){
         alert(html);
        }
    })
});


i think i got it all right and also returns an alert box but the problem is what it returns is a "Directory access is forbidden"... and i dont know where the problem is... please help..

This post has been edited by czach: 28 August 2010 - 06:57 AM


Is This A Good Question/Topic? 0
  • +

Replies To: got a problem with ajax... please help!..

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6107
  • View blog
  • Posts: 23,656
  • Joined: 23-August 08

Re: got a problem with ajax... please help!..

Posted 28 August 2010 - 08:01 AM

Closed...this is a dupe of another topic in PHP. Please do NOT create duplicate topics.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1