...">

why is url getting appended upon a ajax request using jquery form submission?

Stuck with a jquery ajax form submission! Here's the code snippet: **Javascript/ HTML Code:**
jsPageID = " .$page_id. ";"; ?> jsUsername = '" .$_SESSION['username']. "' ;"; ?> **Now here's the PHP code:** Now, when I try executing the above code, the form "sometimes" gets submitted to db. I cant think of a reason for why the "sometimes". Also, there is some data that is getting appended to the url somehow, after the request is processed. Example: If the original url of the webpage, before making the ajax request is something like "page.html?id=6" then, on executing the ajax request, the page url gets appended as below: "page.php?id=6&submit-minus=" (if the submit-minus button was used for invoking the ajax request) I do not understand why the submit-minus thing is getting appended to the url, and also whey only rarely the data is getting inserted successfully to the db. Thanks for your time.

以上就是why is url getting appended upon a ajax request using jquery form submission?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏