What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-14 07:51:02
php confirm box
If you want to do this only in PHP, you will need to add "steps" in your script, like: step1 (show form) -> step2 (ask validation) -> step3 (validate) To do so, you can use sessions to keep form content, and GET parameter to track the ste... Add solution -
PHP 2021-09-13 14:51:06
ubuntu 20.04 how to install npm
sudo apt update sudo apt install nodejs npm Add solution -
Javascript 2021-09-13 01:17:03
vue axios post return json data
// response is full Response object, with URL, headers, method and etc. axios.post("http://localhost:8080/api/some/awesome/endpoint", postData) .then(response => console.log(response.data)); // no need for .json method, becouse response.data... Add solution -
Python 2021-09-12 13:13:03
python get first occurrence in list
next(obj for obj in objs if obj.val==5) Add solution -
Javascript 2021-09-12 09:43:01
javascript use strict
//It's a new feature of ECMAScript 5. //With strict mode, you can not, for example, use undeclared variables. Insert a 'use strict'; statement on top of your script: /***START ANY JS FILE***/ 'use strict'; var a = 2; .... /***END***/ Or, insert a 'use ... Add solution -
Javascript 2021-09-12 03:30:02
how to creat puzzle 15 at jq
<!DOCTYPE html> <html> <!-- Homework 6: Fifteen Puzzle You should not modify fifteen.html. Your JS code should work with an unmodified version of this file. --> <head> <title>Fifteen Puzzle</title> ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5