HI,
I want to post slice string and make data out of it to post in in below method
How to make the post fields dynamic in PHP ?
<?
$url = '[login to view URL]';
$string = "name=John|age=33|country=USA|.................."
// what post fields?
$fields = array(
'name' => John,
'age' => 33,
'country' => USA,
.
.
.
.
);
// build the urlencoded data
$postvars = http_build_query($fields);
// 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, $postvars);
// execute post
$result = curl_exec($ch);
// close connection
curl_close($ch);
?>
Hello sir, i have 10 years of exp,
i have read the description
and ready to start work right now.
.....................................................................
$10 USD 10 gün içinde
4,9 (348 değerlendirme)
7,0
7,0
2 freelancers are bidding on average $14 USD for this job
Hello,
I have checked your job description and I am okay to get this done for you.
I can able to solve your problem with in an hour.
I can able to start right now.
Thanks