Aller au contenu

Demande de l'aide pour pjirc


Chopin

Sujets conseillés

Bonjours,

Voila j'ai un petit probleme avec mon applet PJirc il fonctionne mais je n'arrive pas a faire coordonné le formulaire (la ou l'on entre le : speudo pass est chan) avec l'applet (une fois l'applet connecté tout est rester par default) j'ai lu beaucoup de message sur le forum a ce sujet mes aucun ne résoud mon probleme alors si vous pouvez le résoudre merci d'avance.

Voici le code complet de la page formulaire:

<html>
<head>
<title> Formulaire Teste</title>

<meta name="GENERATOR" content="Namo WebEditor v6.0">
</head>
<body>

<p> <form name="chatter" method="post" action="Applet/AppletChopin.html" OnSubmit="return champsok()" target="_blank">


<div align="center">
<p style="margin-bottom: 0"><br>
</p>
<div align="center">
  <table height="386" border="0" cellpadding="0" cellspacing="0" width="491">
         
 <center>
           
 </center>
 <center>
   <tr>        
                   <td height="84" valign="middle" width="489" align="center" colspan="4">
                       

                       
                       <p style="margin-bottom: 0">
<font color=" face=" size="2" #808080 arial>
</font>
<font face="Verdana" size="1">
           <font #808080 arial>
           
<b>
           
Pseudo : </b>
   <input type="text" name="nick" size="20">
    <br>
   <b>
Mot de passe </b> (si vous êtes enregistré)

<b>
</b> </font>
                       </font>
           <font size="1" #808080 arial face="Verdana">
<b>
:</b>
   <input type="text" name="pass" size="20">
       <br>
        </font>
</p>
                   </td>    </tr>
           <font color=" face=" size="2" #808080 arial>
           
   </font>

 </center>
 <font color=" face=" size="2" #808080 arial>
           
 <tr>
                       
   <td height="34" valign="middle" width="489" align="center" colspan="4">
                       
  <p align="left"><b><font face="Verdana" size="1">Votre #salon de
                       discussion :</font></b>
                       
   </td>
 </tr>

 </font>
 <center>
   <tr>        
           <font color=" face=" size="2" #808080 arial>
                       
  <td height="17" valign="middle" width="9" align="center">
                       </td>
                   <td height="17" valign="middle" width="157" align="left">

                       <p align="center">                        <font face="verdana" size="1" #808080 arial color="#0066CC">
                       <b>
                       Salons Public</b></font>                        </p>
                   </td>
  </font>
                   <td height="17" valign="middle" width="174" align="left">
                       <p align="center"><font color=" face=" size="2" #808080 arial>
                       <font face="verdana" size="1" #808080 arial color="#0066CC"><b>Salons
                       </b></font>
                       </font><font size="1" face="Verdana" color="#0066CC"><b>Privé</b></font></p>
                   </td>
  <font color=" face=" size="2" #808080 arial>
                       
                   <td height="17" valign="middle" width="143" align="left">

                       <p align="center">                        <font face="verdana" size="1" #808080 arial color="#0066CC"><b>Salons de Divertissement</b></font></p>
                   </td>
  </font></tr>
           
           
 </center>
 <tr><font color=" face=" size="2" #808080 arial>
   <center>

                       
  <td height="21" valign="middle" width="9" align="center">
                       </td>
   </center>
   </font>
                       
   <td height="21" valign="middle" width="157" align="center">
                       
  <p align="left"><font color="#000000" face="Verdana" #808080 arial size="1">
    <input type="radio" name="chan" value="#BonHumeur" checked>
    <b>#BonHumeur
                       </b></font>
                       
   </td>
   <center>
           
                       
  <td height="21" valign="middle" width="174" align="left">
                       <font color="#000000" face="Verdana" #808080 arial size="1">
    <input type="radio" name="chan" value="#Chan-Chopin">
             </font>#Chan-Chopin
                       </td>
   </center>
   <td height="21" valign="middle" width="143" align="center">
                       
  <p align="left"><font color="#000000" face="Verdana" #808080 arial size="1">
    <input type="radio" name="chan" value="#quizz">
             #quizz</font>
                       
   </td>
 </tr>
 <tr>
   <td height="21" valign="middle" width="9" align="center"></td>
   <td height="21" valign="middle" width="157" align="center">
  <div align="left"><font color=" face=" size="2" #808080 arial><font color="#000000" face="Verdana" #808080 arial size="1">
    <input type="radio" name="chan" value="#aide">
  #Majeur</font>

                       </font></div>
   </td>
   <td height="21" valign="middle" width="174" align="left"> </td>
   <td height="21" valign="middle" width="143" align="center">
  <div align="left">
                           <p> </p>
</div>
   </td>
 </tr>
               <tr>
   <td height="21" valign="middle" width="9" align="center"></td>
                   <td height="21" valign="middle" width="157" align="center">

                       <p align="left"><font color="#000000" face="Verdana" #808080 arial size="1"><input type="radio" name="chan" value="#Mineur">
  </font><font face="Verdana" color="black"><span style="font-size:10pt;">#Mineur</span></font></font></td>
   <td height="21" valign="middle" width="174" align="left"> </td>
   <td height="21" valign="middle" width="143" align="center">
  <div align="left">
                           <p> </p>
</div>
   </td>
               </tr>
 <font color=" face=" size="2" #808080 arial>        
           
 <center>
 </center>
 <font color=" face=" size="2" #808080 arial>
           

           
           
           

           
 </font></font>
  </table>

</div>        
<font size="1" #808080 arial color="#000000"><font face="verdana" color="#0066cc" size="1" arial? #808080?><br>
<br>
</font>
</font>
<input type="submit" value="Chatter"></div>
</form>
 </font><font face="verdana" size="1"><br>
       </font>

Et voici le code complet de la page de l'applet:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


<HTML><HEAD><TITLE>AppletChopin</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Namo WebEditor v6.0" name=GENERATOR></HEAD>
<BODY>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
 <TBODY>
 <TR height=13>
   <TD colSpan=2 rowSpan=2><APPLET height="100%"
     archive=irc.jar,pixx.jar width="100%" code=IRCApplet.class>
  <PARAM NAME="CABINETS" VALUE="irc.cab,securedirc.cab,pixx.cab">
  <PARAM NAME="nick" VALUE="Guest???">
  <PARAM NAME="alternatenick" VALUE="Guest???">
  <PARAM NAME="fullname" VALUE="www.pjirc.com">
  <PARAM NAME="host" VALUE="Bon-Humeur.ucool.org">
  <PARAM NAME="gui" VALUE="pixx">
  <PARAM NAME="quitmessage" VALUE="Je-Reviendrais!">
  <PARAM NAME="asl" VALUE="true">
  <PARAM NAME="command1" VALUE="join #Bonhumeur">
  <PARAM NAME="pixx:helppage" VALUE="http://www.pjirc.com/help.php">
  <PARAM NAME="style:bitmapsmileys" VALUE="true">
  <PARAM NAME="style:smiley1" VALUE=" img/sourire.gif">
  <PARAM NAME="style:smiley2" VALUE=":-) img/sourire.gif">
  <PARAM NAME="style:smiley3" VALUE=":-D img/content.gif">
  <PARAM NAME="style:smiley4" VALUE=" img/content.gif">
  <PARAM NAME="style:smiley5" VALUE=":-O img/OH-2.gif">
  <PARAM NAME="style:smiley6" VALUE=" img/OH-1.gif">
  <PARAM NAME="style:smiley7" VALUE=":-P img/langue.gif">
  <PARAM NAME="style:smiley8" VALUE=" img/langue.gif">
  <PARAM NAME="style:smiley9" VALUE=";-) img/clin-oeuil.gif">
  <PARAM NAME="style:smiley10" VALUE=" img/clin-oeuil.gif">
  <PARAM NAME="style:smiley11" VALUE=":-( img/triste.gif">
  <PARAM NAME="style:smiley12" VALUE=" img/triste.gif">
  <PARAM NAME="style:smiley13" VALUE=":-| img/OH-3.gif">
  <PARAM NAME="style:smiley14" VALUE=":| img/OH-3.gif">
  <PARAM NAME="style:smiley15" VALUE=":'( img/pleure.gif">
  <PARAM NAME="style:smiley16" VALUE=":$ img/rouge.gif">
  <PARAM NAME="style:smiley17" VALUE=":-$ img/rouge.gif">
  <PARAM NAME="style:smiley18" VALUE="(H) img/cool.gif">
  <PARAM NAME="style:smiley19" VALUE="(h) img/cool.gif">
  <PARAM NAME="style:smiley20" VALUE=":-@ img/enerve1.gif">
  <PARAM NAME="style:smiley21" VALUE=":@ img/enerve2.gif">
  <PARAM NAME="style:smiley22" VALUE=":-S img/roll-eyes.gif">
  <PARAM NAME="style:smiley23" VALUE=":s img/roll-eyes.gif">
  <PARAM NAME="style:floatingasl" VALUE="true">
  <PARAM NAME="pixx:highlight" VALUE="true">
  <PARAM NAME="pixx:highlightnick" VALUE="true"></APPLET> </TD>
   <TD width=9><IMG height="100%"
     src="IRCApplet Normal_fichiers/shadow.ne.gif" width=9 border=0> </TD></TR>
 <TR>
   <TD width=9><IMG height="100%"
     src="IRCApplet Normal_fichiers/shadow.e.gif" width=9 border=0> </TD></TR>
 <TR height=9>
   <TD width=13><IMG height=9 src="IRCApplet Normal_fichiers/shadow.sw.gif"
     width=13 border=0></TD>
   <TD><IMG height=9 src="IRCApplet Normal_fichiers/shadow.s.gif"
     width="100%" border=0></TD>
   <TD><IMG height=9 src="IRCApplet Normal_fichiers/shadow.se.gif" width=9
     border=0></TD></TR></TBODY></TABLE></BODY></HTML>

Lien vers le commentaire
Partager sur d’autres sites

Salut

Pour récupérer tes champs pseudos et pass, il te faut utiliser une page en php et non en html

Applet/AppletChopin.html doit donc etre en php

et

tu remplaces

<PARAM NAME="nick" VALUE="Guest???">

par

<?
echo"<PARAM NAME=\"nick\" VALUE=\"".$_GET['nick']."\">";
?>

Et tu remplaces :

<PARAM NAME="command1" VALUE="join #Bonhumeur">

par

<?
echo"<PARAM NAME=\"command1\" VALUE=\"join ".$_GET['chan']."\">";
?>

Par ailleurs, dans ton applet pjirc je ne vois pas l'endroit ou tu exécutes une commande d'enregistrement avec un pass.

A +

Lien vers le commentaire
Partager sur d’autres sites

Je commence par vous remercier pour votre aide,

Voila j'ai créer la page en php elle se lance corectement mais je n'arrive toujours à rejoindre les channels cocher et le peudo ne fonctionne toujours pas également sa met directement le nick alternative. Je sans pourtant rapprocher du but. Je me demande donc si ce n'est pas dans la page formulaire qui l'y as une erreur.

Voici juste le bout de code que j'ai modifier

<TD colSpan=2 rowSpan=2><APPLET height="100%" 
     archive=irc.jar,pixx.jar width="100%" code=IRCApplet.class>
  <PARAM NAME="CABINETS" VALUE="irc.cab,securedirc.cab,pixx.cab">
     <?
echo"<PARAM NAME=\"nick\" VALUE=\"".$_GET['nick']."\">";
?>

  <PARAM NAME="alternatenick" VALUE="Guest???">
  <PARAM NAME="fullname" VALUE="www.pjirc.com">
  <PARAM NAME="host" VALUE="Bon-Humeur.ucool.org">
  <PARAM NAME="gui" VALUE="pixx">
  <PARAM NAME="quitmessage" VALUE="Je-Reviendrais!">
  <PARAM NAME="asl" VALUE="true">
  <?
echo"<PARAM NAME=\"command1\" VALUE=\"join ".$_GET['chan']."\">";
?>
  <PARAM NAME="pixx:helppage" VALUE="http://www.pjirc.com/help.php">
  <PARAM NAME="style:bitmapsmileys" VALUE="true">

Modifié par Chopin
Lien vers le commentaire
Partager sur d’autres sites

Euh non ca yé ca fonctionne merci pour tout en faite la solution etait

echo"<param name=\"nick\" value=\"$_POST[nom]\">\n";code]

mais sans vous je n'auras pas compris qu'il fallait mettre en php merci encore pour tout

++++

Modifié par Chopin
Lien vers le commentaire
Partager sur d’autres sites

Euh mdr en faite j'ai un autre problème ça fonctionne pour les pseudo mais par pour les chan

sur le formulaire j'ai mis ça

#Chan-Chopin<input type="radio" name="chanone" value="#Chan-Chopin">

et sur la page de l'applet j'ai mis ca

<?
echo"<param name="command1" value="/join "$_POST[chanone]\">\n";
?>

mais ca marche pas :wacko: quelqu'un peut il me dire pourquoi?

Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...