Server IP : 103.6.199.200 / Your IP : 3.149.214.223 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/sharksav/donation.sharksavers.org.my/wwwroot/ |
Upload File : |
<?php $url = 'http://member.linkodes.com/api/pledge_to_shark_savers'; $postdata = $_POST['postdata']; $fields = array( 'uacc_id' => urlencode($postdata['uacc_id']), 'pledge_1' => urlencode($postdata['pledge_1']), 'pledge_2' => urlencode($postdata['pledge_2']), 'pledge_3' => urlencode($postdata['pledge_3']) ); //url-ify the data for the POST foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string, '&'); //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); //execute post $result = curl_exec($ch); ?>