| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/ |
Upload File : |
<?php
require_once('includes/class_vcard.php');
include("includes/ConvertCharset.class.php");
$FromCharset = "utf-8";
$ToCharset = "iso-8859-7";
$utf8_to_iso88597 = new ConvertCharset($FromCharset, $ToCharset);
$vc = new vcard();
/*
The secret here is to name your form fields exactly the same as the vCard
data key names in the class.
*/
foreach ($_POST as $key=>$val) {
$vc->data[$key] = $utf8_to_iso88597->Convert($val);
}
$vc->download();
?>