Convert GET to POST in PHP - repost

Concluído Postado Dec 14, 2012 Pago na entrega
Concluído Pago na entrega

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

}

PHP Segurança na rede

ID do Projeto: #4042387

Sobre o projeto

8 propostas Projeto remoto Ativo em Dec 18, 2012

Concedido a:

mgraph

Hi, check inbox

$30 USD em 1 dia
(67 Comentários)
4.5

8 freelancers estão ofertando em média $35 nesse trabalho

TopSEOExpertscom

Hi, Please check PMB for details. We're ready to start right away.

$30 USD em 1 dia
(187 Comentários)
7.7
VileGnosis

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

$30 USD in 0 dias
(159 Comentários)
6.6
k1ng440

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

$50 USD in 3 dias
(88 Comentários)
6.4
angelmiks2007

Clear with requirements. Ready to start. Thanks

$40 USD in 0 dias
(36 Comentários)
5.8
sveralex

Hello, here is my bid

$40 USD em 1 dia
(30 Comentários)
5.4
Ashe93

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

$30 USD in 0 dias
(9 Comentários)
3.9
crispinsmith2010

Hi , freelancer expert here , Please check PMB. Thanks ,

$30 USD in 0 dias
(9 Comentários)
3.3
Torricelli

I can get this job done right away!

$30 USD in 0 dias
(3 Comentários)
1.9