Dibatalkan

Convert GET to POST in PHP

Hello,

I have three php functions. I need to convert the last two (processGET, processACH) from a GET to a POST.

Thank You,

function processRequest(){

global $config;

$data = $_POST;

$data['MerchantID'] = $config['MerchantID'];

$data['RegKey'] = $config['RegKey'];

$data['USER2'] = substr($data['AccountNo'],strlen($data['AccountNo'])-4);

$req = new HTTPRequest('[url removed, login to view]','/bill/transac/[url removed, login to view]','POST',true);

$req->connect(html_entity_decode(http_build_query($data)));

$data = parseFields($req->getContent());

return $data;

}

function processGET(){

global $config;

$data = $_POST;

$data['MerchantID'] = $config['MerchantID'];

$data['RegKey'] = $config['RegKey'];

$data['Amount'] = number_format($data['Amount'], 2, '.', '');

$data['USER2'] = substr($data['AccountNo'],strlen($data['AccountNo'])-4);

$str = html_entity_decode(http_build_query($data));

$data = file_get_contents('[url removed, login to view]'.$str);

return parseFields($data);

}

function processACH() {

global $config;

$data = $_POST;

$data['MerchantID'] = $config['MerchantID_ach'];

$data['RegKey'] = $config['RegKey_ach'];

$data['USER2'] = substr($data['AccountNo'],strlen($data['AccountNo'])-4);

$str = html_entity_decode(http_build_query($data));

$data = file_get_contents('[url removed, login to view]'.$str);

return parseFields($data);

}

Kemahiran: PHP, Sekuriti Web

Lihat lebih lanjut: convert post php, php convert post, web config php, data str, convert post data php, str, post process, global php, substr, return data php, req php, regkey, convert php function, post php, post data php, asp post data, asp function return, php global, post php data, asp php global, php global data, php str, asp post, convert function php, convert true

Tentang Majikan:
( 64 ulasan ) Glendale, United States

ID Projek: #4042222

17 pekerja bebas membida secara purata $250 untuk pekerjaan ini

NetzPro

Dear Sir, We would love to get this opportunity of working with you. We can guarantee that you will not regret your decision if you select us to execute this project. Regards NetzPro

$250 USD dalam sehari
(332 Ulasan)
8.4
denisCh

Please check PM

$250 USD dalam sehari
(58 Ulasan)
7.4
VileGnosis

I have sent a private message to your inbox that contains my relevent skills and any questions I have.

$250 USD dalam 0 hari
(154 Ulasan)
6.5
k1ng440

Full time freelance web developer with over 8 years of commercial experience.

$250 USD dalam sehari
(88 Ulasan)
6.4
hvtuananh

Please check your PMB

$250 USD dalam sehari
(123 Ulasan)
6.0
Chtioui86

Hi, Please see your private msg TY

$250 USD dalam sehari
(61 Ulasan)
5.9
Eswar87

Hi, I can do this. Please check PM for more details. Regards, Eswar.

$250 USD dalam 3 hari
(27 Ulasan)
5.6
santossystems

Hi, This is a straightforward task. Let me take care of it for you. Looking forward hearing from you.

$250 USD dalam 0 hari
(36 Ulasan)
5.4
imdTech

Dear Sir, I think that I have the required technical skills to finsh this job very quickly. I have 12 years experience in web programming field (PHP/MySQL, HTML/CSS, along with JavaScript/AJAX). It does not need m Lagi

$250 USD dalam 2 hari
(12 Ulasan)
5.0
PhilipClarke

Hi, Very experienced UK based PHP developer (you can google me, my work is all over the place from phpMyAdmin to Drupal), The job is very straight forward with the big exception, what is sending the data ? and th Lagi

$250 USD dalam sehari
(2 Ulasan)
4.6
mgraph

Hi, check inbox

$250 USD dalam 0 hari
(67 Ulasan)
4.5
diamond1027

Hi, I can do it perfectly. Please see the PM. Diamond.

$250 USD dalam 0 hari
(19 Ulasan)
4.3
Ashe93

Please check your PMB! I have sent you a message regarding my bid. I look forward to hearing a response from your end!

$250 USD dalam 0 hari
(9 Ulasan)
3.9
Locust

Hi, I can do it, details in PM. Thanks.

$250 USD dalam sehari
(14 Ulasan)
3.8
phpdeveloper11

9 years experience in php, mysql, ajax

$250 USD dalam 0 hari
(7 Ulasan)
3.8
nickdev1

Hi Perland, When I saw your job posting, I tried to go lower than $250, but it wouldn't let me. I figured you loved to pay top dollar for great developers, especially since you had 55 reviews. Looking forward to wor Lagi

$250 USD dalam sehari
(3 Ulasan)
3.3
RazHarush

Hey! I am a PHP expert that can complete this project within an hour for $30 only! Please view the private message I sent you for more details.

$250 USD dalam 0 hari
(5 Ulasan)
3.3
littfed

I can help you with this, ready to start immediately and delivery it in several hours.

$250 USD dalam sehari
(4 Ulasan)
3.1
cereno

I can do it for you within 30 minutes.

$250 USD dalam 0 hari
(3 Ulasan)
2.3
eliaa

i'm ready to start now

$250 USD dalam 0 hari
(1 Ulasan)
1.6