Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
PHP
2022-01-25 13:55:03
axios post not sending data php
$_POST = json_decode(file_get_contents("php://input"),true); echo $_POST['data1'];
Add solution
PHP
2022-01-23 21:45:22
php ?:
// Example usage for: Null Coalesce Operator $action = $_POST['action'] ?? 'default'; // The above is identical to this if/else statement if (isset($_POST['action'])) { $action = $_POST['action']; } else { $action = 'default'; }
Add solution
Javascript
2022-01-23 12:15:08
jquery function return
function myFunction(p1, p2) { var a = ""; $.post( "/url", function( data ) {a = data.result;}); return a; }
Add solution
Javascript
2022-01-23 09:45:45
what is ajax call
$.ajax({ url : 'more_com.php', //PHP file to execute type : 'GET', //method used POST or GET data : {variable1 : "some data"}, // Parameters passed to the PHP file success : function(result){ // Has to be there ! ...
Add solution
PHP
2022-01-23 00:26:17
if button is clicked php
if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Something posted if (isset($_POST['btnDelete'])) { // btnDelete } else { // Assume btnSubmit } }
Add solution
PHP
2022-01-22 21:00:25
php mysql timestamp format
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
Add solution
Other
2022-01-22 05:16:30
form data to php Class
function login(Array $data){ // Whatever your code does } if($_POST['action'] == "login") { login($_POST); }
Add solution
PHP
2021-12-23 16:57:27
CURL PHP POST
$post = [ 'teste' => $_POST['teste'] ]; httpPost('url.com', $post); // function function httpPost($url, $data) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_set...
Add solution
PHP
2021-11-21 13:51:07
add password php file
<?php $user = $_POST['user']; $pass = $_POST['pass']; if($user == "admin" && $pass == "admin") { include("secure.html"); } else { if(isset($_POST)) {?> <form method="POST&qu...
Add solution
Javascript
2021-11-21 07:41:21
jquery window new tab with post
$.post(url, function (data) { var w = window.open('about:blank'); w.document.open(); w.document.write(data); w.document.close(); });
Add solution
‹
1
2
3
4
5
6
7
8
9
10
...
17
18
›
Best helpers
daily
weekly
monthly
for 3 months
John Gotti
+5
Rookie
+5
Jagoda Tajchert
+5
Jeffrywith1e
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.