Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get post php

<?php
var = $_POST['var'];
echo var;
  
// YOUR METHOD IN HTML MUST BE IN POST

<form method="post">
	<input type="text" name="var">  
</form>
Comment

get post in php

$data = json_decode(file_get_contents('php://input'), true);

// you have all in an array
Comment

PREVIOUS NEXT
Code Example
Php :: add options page advanced custom fields 
Php :: Make a Woo required field not required 
Php :: random element in faker 
Php :: ERROR: Could not enable dependency mpm_prefork for php7.4, aborting 
Php :: give custom field name in laravel form validation error message 
Php :: how to log object laravel logger 
Php :: DateTime and Timestamps 
Php :: laravel array cast 
Php :: magento 2.3 check if customer is logged in 
Php :: user location using php 
Php :: loop foreach laravel with number 
Php :: how to add custom field in comment form in wordpress 
Php :: Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in 
Php :: php use function from same class 
Php :: codeigniter update or create 
Php :: adeleye ayodeji 
Php :: check request header laravel 
Php :: how to print string plus variable in php 
Php :: laravel query order by relation 
Php :: jQuery is not defined load-scripts.php 
Php :: laravel validation double 
Php :: wp reserved image size name 
Php :: Laravel: Set timestamp column to current timestamp 
Php :: specification migration laravel 
Php :: how to get woocommerce order details 
Php :: throttle laravel 
Php :: comment php 
Php :: php check if link exists 
Php :: php mail in localhost wamp 
Php :: php add array to array 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =