echo '<form action="' . $url . '" method="post" name="FormRegistration" onsubmit="return RegistrationValid(' . json_encode(array('Массив 0', 1, 2)) . ');">';