Annulleret

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);

}

Færdigheder: PHP, Web Sikkerhed

Se mere: 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

Om arbejdsgiveren:
( 64 bedømmelser ) Glendale, United States

Projekt-ID: #4042222

17 freelancere byder i gennemsnit $250 for dette job

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 på 1 dag
(332 bedømmelser)
8.4
denisCh

Please check PM

$250 USD på 1 dag
(58 bedømmelser)
7.4
VileGnosis

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

$250 USD in 0 dage
(154 bedømmelser)
6.5
k1ng440

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

$250 USD på 1 dag
(88 bedømmelser)
6.4
hvtuananh

Please check your PMB

$250 USD på 1 dag
(123 bedømmelser)
6.0
Chtioui86

Hi, Please see your private msg TY

$250 USD på 1 dag
(61 bedømmelser)
5.9
Eswar87

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

$250 USD in 3 dage
(27 bedømmelser)
5.6
santossystems

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

$250 USD in 0 dage
(36 bedømmelser)
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 Mere

$250 USD in 2 dage
(12 bedømmelser)
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 Mere

$250 USD på 1 dag
(2 bedømmelser)
4.6
mgraph

Hi, check inbox

$250 USD in 0 dage
(67 bedømmelser)
4.5
diamond1027

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

$250 USD in 0 dage
(19 bedømmelser)
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 in 0 dage
(9 bedømmelser)
3.9
Locust

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

$250 USD på 1 dag
(14 bedømmelser)
3.8
phpdeveloper11

9 years experience in php, mysql, ajax

$250 USD in 0 dage
(7 bedømmelser)
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 Mere

$250 USD på 1 dag
(3 bedømmelser)
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 in 0 dage
(5 bedømmelser)
3.3
littfed

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

$250 USD på 1 dag
(4 bedømmelser)
3.1
cereno

I can do it for you within 30 minutes.

$250 USD in 0 dage
(3 bedømmelser)
2.3
eliaa

i'm ready to start now

$250 USD in 0 dage
(1 bedømmelse)
1.6