Bonjour
Je viens ici pour poster un message relatif à l'applet coolsmile
après quelque recherche sur google, j'ai pu trouver un formulaire de
connexion mais celui ci ne permet pas le choix des salons, en ouvrant
un peu le code j'ai legerement compris comment cela fonctionnait mais
pas pour les salons ...
j'espere que quelqu'un saura donné réponse à mon probleme ou du moins me faire comprendre
Merci
voici le code que j'ai trouvé en ce qui concerne le formulaire
<form method="POST" action="chat.php" target="chatwindow"
onsubmit="w=window.open('chat.php','chatwindow','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=600,height=400');
w.focus();Submt.disabled=true;" language="JavaScript">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="4"
style="border-collapse: collapse; font-size: 12pt; color: #000000"
bordercolor="#111111" width="94%" id="AutoNumber1" bgcolor="#FFFFFF">
<tr>
<td width="100%" colspan="2" align="center"><u><b></b></u></td>
</tr>
<tr>
<td width="30%" align="right">Pseudo :</td>
<td width="70%">
<input type="text" name="Login" size="20" maxlength="25"></td>
</tr>
<tr>
<td width="30%" align="right">Age :</td>
<td width="70%">
<input type="text" name="Age" size="3" maxlength="2"></td>
</tr>
<tr>
<td width="30%" align="right">Sexe :</td>
<td width="70%"><select size="1" name="Sexe">
<option value="H">Homme</option>
<option selected value="F">Femme</option>
</select></td>
</tr>
<tr>
<td width="30%" align="right">Ville :</td>
<td width="70%">
<input type="text" name="Ville" size="22" maxlength="45"></td>
</tr>
<tr>
<td width="30%" align="right">Mot de passe (pour les inscrit) :</td>
<td width="70%">
<input type="password" name="Passns" size="18" style="color: #FF0000; font-weight: bold"></td>
</tr>
<tr>
<td width="100%" colspan="2" align="center">
<input type="submit" value="Connexion au chat" name="Submt"
style="color: #000000; background-color: #FFFFFF"></td>
</tr>
</table>
</center>
</div>
</form>
Et la page php ...
<?php
$FLogin = ''.$_POST['Login'].'';
$FAge = ''.$_POST['Age'].'';
$FSexe = ''.$_POST['Sexe'].'';
$FVille = ''.$_POST['Ville'].'';
$FPassns = ''.$_POST['Passns'].'';
?>
<HTML>
<HEAD>
<TITLE> - Dialogue en direct.</TITLE>
</HEAD>
<BODY style="color: #FFFFFF; background-color: #000000; margin: 1px; overflow: hidden;">
<CENTER>
<APPLET name="coolsmile" code="EIRC.class" width="100%" height="100%">
<PARAM name="archive" value="EIRC.jar,EIRC-cfg.jar">
<PARAM name="cabbase" value="EIRC.cab,EIRC-cfg.cab">
<PARAM name="server" value="irc.tchat-blonde.fr">
<PARAM name="port" value="6667">
<PARAM name="irc_pass" value="">
<PARAM name="font_name" value="Helvetica">
<PARAM name="font_size" value="12">
<PARAM name="language" value="">
<PARAM name="mainbg" value="#809BDC">
<PARAM name="mainfg" value="#000000">
<PARAM name="textbg" value="#FFFFFF">
<PARAM name="textfg" value="#000000">
<PARAM name="selbg" value="#F0F0FF">
<PARAM name="selfg" value="#000000">
<PARAM name="join" value="">
<PARAM name="username" value="blonde">
<PARAM name="realname" value="<?php echo ''.$FAge.' '.$FSexe.' '.$FVille.'';?>">
<PARAM name="nickname" value="<?php echo ''.$FLogin.'';?>">
<PARAM name="nicksrv_pass" value="<?php echo ''.$FPassns.'';?>">
<PARAM name="login" value="1">
<PARAM name="asl" value="1">
<PARAM name="spawn_frame" value="0">
<PARAM name="width" value="700">
<PARAM name="height" value="500">
<PARAM name="write_color" value="1">
<PARAM name="debug_traffic" value="0">
<PARAM name="boxmessage" value="Please wait while loading chat box...">
<PARAM name="boxbgcolor" value="blue">
<PARAM name="boxfgcolor" value="black">
<PARAM name="progressbar" value="true">
<PARAM name="progresscolor" value="red">
<B>You must enable or <A HREF="http://www.java.com">setup Java</A> in your web browser !</B>
</APPLET>
</CENTER>
</BODY>
</HTML>
Merci d'avoir lu cette partie de code
L exemple concret se trouve sur le site de l'auteur: http://www.coolsmile.net
en vous remerciant
Merci de répondre à ce message