I want save all the visitors Browser infos in my PHP session.
I have used the same Code before in an other script and it works fine, but in this one not..
1 Page:
<?php
session_start();
?>
<script src="https://code.jquery.com/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="src/js/a.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
var client = new ClientJS();
$("#browser_info").val(client.getBrowser() + " " + client.getBrowserMajorVersion());
$("#os_info").val(client.getOS() + " " + client.getOSVersion());
$("#screenPrint").val(client.getScreenPrint());
$("#plugins").val(client.getPlugins());
$("#isJava").val(client.isJava() + " " + client.getJavaVersion());
$("#isFlash").val(client.isFlash() + " " + client.getFlashVersion());
$("#isSilverlight").val(client.isSilverlight() + " " + client.getSilverlightVersion());
$("#isMimeTypes").val(client.isMimeTypes() + " " + client.getMimeTypes());
$("#fonts").val(client.getFonts());
});
</script>
<!DOCTYPE html>
And on the next page:
$_SESSION['vic_info_browser']= $_POST['browser_info'];
$_SESSION['vic_info_os']= $_POST['os_info'];
$_SESSION['vic_info_screen']= $_POST['screenPrint'];
$_SESSION['vic_info_plugins']= $_POST['plugins'];
$_SESSION['vic_info_java']= $_POST['isJava'];
$_SESSION['vic_info_flash']= $_POST['isFlash'];
$_SESSION['vic_info_silver']= $_POST['isSilverlight'];
$_SESSION['vic_info_mime']= $_POST['isMimeTypes'];
$_SESSION['vic_info_fonts']= $_POST['fonts'];
My paths are also correct, anyone know whats the Problem?
Error is: Undefined index: screenPrint
For every Session the erros comes not only screenPrint