Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=82938
Postga havola
kr_master [4] [off]
AJAX texnologiyasi orqali bazaga ma'lumot yuborish kodi
index.php
request.php
data.base.php
index.php
<!DOCTYPE html> <html> <body> <form action="" method="POST"> <input type="text" id="text"> <button type="button" id="send"> <script> $("#send").click(function() { var text = $("#text").val(); if (text != "") { $.ajax({ type: "GET", url: "request.php", data: { text: text }, cache: false, }); } }); </script> </body> </html>
request.php
<?php require("data.base.php");
data.base.php
<?php $dbhost = 'localhost'; $dbname = 'name'; $dbpass = 'password'; $dbuser = 'user';