Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/06/2008, 07:55
chefnelone
 
Fecha de Ingreso: diciembre-2005
Ubicación: Barcelona
Mensajes: 1.428
Antigüedad: 18 años, 5 meses
Puntos: 15
Guardar info proveniente de js en base sql

Necesito saber si el usuario tiene instalado FlashPlayer y guardar esa informacion en una base de datos sql con php.

esta es la parte js
<SCRIPT LANGUAGE="JavaScript">
<!-- use this comment tag to hide the enclosed code from old browsers.


if ((navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.indexOf("Mac") == -1 && navigator.appVersion.indexOf("3.1") == -1) ||

(navigator.plugins && navigator.plugins["Shockwave Flash"])
|| navigator.plugins["Shockwave Flash 2.0"]){

var valor="si";
}
else {
var valor="no";
//no flash

}

// Close the comment tag. -->
</SCRIPT>

y este el php:
<?php
//coneccion a database
$query = "INSERT INTO emailUnsubscribedRestSw (email) VALUES ('$email')";
mysql_query($query);
?>

Pero como hago la comunicacion entre ambos lenguajes SIN CAMBIAR DE PAGINA

gracias