[insert_php]

$id = $_GET[“id”];

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, ‘https://app.youthforcauses.com/index.php?option=com_yfc&controller=vwo_registration&task=getVWO&id=’ . $id);
$result = curl_exec($ch);
curl_close($ch);

$obj = json_decode($result);

$url = $obj->website;
if( strpos($url, ‘http’) !== false ){
}else{
$url = ‘http://’ . $url;
}

[/insert_php] [insert_php] print ‘

‘ . $obj->name . ‘

Website: ‘ . $url . ‘
Sector: ‘ . $obj->sector . ‘
Participated in the YFC programme before?: ‘ . ucwords($obj->participated) . ‘
Name of Representative ‘ . $obj->r_name . ‘
Email Contact Number ‘ . $obj->contact . ‘

 

Description of Organization

‘ . $obj->description . ‘

 

Intended use of funds through the YFC programme

‘ . $obj->use_of_funds . ‘

 

Engaging and involving the YFC participants

‘ . $obj->engaging . ‘

‘;
[/insert_php]