What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-23 01:30:18
ajax post request
var formData = {name:"John", surname:"Doe", age:"31"}; //Array $.ajax({ url : "https://example.com/rest/getData", // Url of backend (can be python, php, etc..) type: "POST", // data type (can be ... Add solution -
Other 2022-03-22 23:20:11
No me reconoce la variable de conexión a Base de datos
function Productos(){ require_once("conexion.php"); $data = file_get_contents("productos.json"); $producto = json_decode($data, true); foreach($producto as $a){ $consulta = $conn->prepare("Insert into pr... Add solution -
Other 2022-03-21 22:45:22
api fetch post
//Obj of data to send in future like a dummyDb const data = { username: 'example' }; //POST request with body equal on data in JSON format fetch('https://example.com/profile', { method: 'POST', headers: { 'Content-Type': 'application/json', }, ... Add solution -
Javascript 2022-03-21 09:40:12
create custom snippet vscode
/*To create or edit your own snippets, select User Snippets under File > Preferences > User Snippets (Code > Preferences on macOS), and then select the language for which the snippets should appear*/ // Snippets are written in JSON Example: { ... Add solution