Communauté Informatique NDFR.net : Problème de frame,javascript ou php (???) sous Vista - Programmation Web (HTML, PHP, ASP, Java, XML, etc.)
 
Problème de frame,javascript ou php (???) sous Vista
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 31-07-2007, 23:13
geoffrey75 geoffrey75 is offline
Membre junior
 
Join Date: 30-07-2007
Posts: 7
Le code

voici le code pour te permettre de comprendre mieux :

Code:
<html>
<head>
<title>.::Nathalie et Geoffrey::.</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META NAME="TITLE" CONTENT="'Le site de Nathalie Gobbe et Geoffrey Lepers'">
<META NAME="DESCRIPTION" CONTENT="Découvrez le site de Nathalie Gobbe et Geoffrey Lepers, deux passionnés de leur quartier, de leur commune de Jette, de rencontres avec leurs voisins... De nombreuses photos sont disponibles...">
<META NAME="KEYWORDS" CONTENT="jette,geoffrey,nathalie,gobbe,lepers,élection,commune,communale,passion,sondage,forum,corneille,clercq,faes,levis,mirepoix,odon,warland,lecharlier,honoré,longtin,charles,woeste,livre,quartier,travail,boulot,photo,chandeleur,crêpe,voisin,journée,internationale,mr,mouvement,réformateur,politique,fdf,candidat,mailing-list,rencontre,humaine">
<META NAME="OWNER" CONTENT="geoffrey.lepers@swing.be"><META NAME="AUTHOR" CONTENT="Geoffrey Lepers">
<META HTTP-EQUIV="CONTENT-LANGUAGE" CONTENT="French">
<META NAME="ROBOTS" CONTENT="index,follow">
<META NAME="REVISIT-AFTER" CONTENT="7 days">
<META NAME="ROBOTS" CONTENT="ALL">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(234, 236, 255);" topmargin="0" marginheight="0">
<?
include("../php_config.php");
//echo "test";
mysql_connect($DBhost, $DBusr, $DBpwd) or die (mysql_error());
mysql_select_db($DBname) or die (mysql_error());
//echo "test";
$id = isset($_GET['id'])?$_GET['id']:'';
mysql_query("UPDATE clic SET nbr_clics=nbr_clics+1 WHERE id='".$id."'") or die (mysql_error());
$redir = @mysql_query("SELECT url,target FROM clic WHERE id='".$id."'");
$rec = @mysql_fetch_array($redir);
//echo $redir;
//echo $id;
//echo $rec[1];
echo "<script language=javascript>window.open('".$rec[0]."','".$rec[1]."')";
if ($rec[1]=='_blank')
 {
  echo 'history.go(-1)';
 }
echo '</script>';
?>
</body>
</html>
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirection d'une page avec frame fayewongfr Programmation Web (HTML, PHP, ASP, Java, XML, etc.) 8 07-12-2007 18:04
Un Prob sous Vista nikool Windows Vista 2 06-03-2007 19:16
Article : ce que Windows Vista RC1 a sous le capot Cougar Actualité 1 24-09-2006 19:02
Problème de CONNEXION sous WINDOWS VISTA Microlonn Windows Vista 12 29-06-2006 23:48
probleme de texte tournant en javascript qui marche pas !!! sel31 Design Web / Graphisme 1 22-07-2004 13:09

All times are GMT +2. The time now is 00:48.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.