1 2 3 4 5 6 7 8 9 10 11 |
$params = array( 'id' => $formID, 'key' => $formKey, 'type' => 1 ); $protocol = 'http'; if($_SERVER['HTTPS'] == 'on') $protocol = 'https'; $url = $protocol . '://' . $_SERVER["SERVER_NAME"] . '/form/?' . http_build_query($params); //echo $url; //exit(); |