25/02/2017, 10:53
Hello,
Je rencontre un soucis avec un formulaire LightIRC. En effet, l'applet me retourne l'erreur suivante :
Voici mon codage du formulaire html :
et du coté de l'applet c'est celui-ci :
Pouvez-vous m'aider à résoudre ce soucis svp ? Merci d'avance.
Je rencontre un soucis avec un formulaire LightIRC. En effet, l'applet me retourne l'erreur suivante :
Citation :erroneous nickname : illegal characters ""
Voici mon codage du formulaire html :
Code :
<code type="php">
<form method="POST" action="http://www.XXX.XX/directwebcam.php" enctype="multipart/form-data">
<fieldset>
<legend>Informations personnelles</legend>
<table>
</br>
<tr>
<td><label for="pseudo">Votre pseudo :</label></td>
<td><input name="p" type="text" value="" id="pseudo" maxlength="32" /></td>
</tr>
<tr>
<td><label for="passe">Votre mot de passe :</label></td>
<td><input name="passe" type="password" value="" id="passe" maxlength="50" /></td>
</tr>
<tr>
<td><label for="age">Votre age :</label></td>
<td><input name="age" type="text" value="" id="age" size="2" maxlength="2" /> ans</td>
</tr>
<tr>
<td><label for="sexe">Votre sexe :</label></td>
<td><input name="sexe" type="radio" value="homme" id="sexe" /> Homme<br /><input name="sexe" type="radio" value="femme" id="sexe" /> Femme</td>
</tr>
<tr>
<td><label for="ville">Votre ville :</label></td>
<td><input name="ville" type="text" value="" id="ville" maxlength="50" /></td>
</tr>
</table>
</fieldset>
<center>
<table>
<tr>
<td><input name="gotchat" type="submit" class="submit" value="Chattez !" /></td>
<td> </td>
<td><input name="resetchat" type="reset" class="submit" value="Effacer" /></td>
</tr>
</table>
</center>
<fieldset>
<legend>Le salon secondaire</legend>
<br />
<table width="100%">
<font size="2" face="Arial, Helvetica, sans-serif"><font color="#0070d9">
<strong>Age :</strong>
</font></font>
<tr>
<td width="25%"><input type="radio" name="chan" value="#adultes" /> #adultes</td>
<td width="25%"><input type="radio" name="chan" value="#campus" /> #campus</td>
<td width="25%"><input type="radio" name="chan" value="#college" /> #college</td>
<td width="25%"><input type="radio" name="chan" value="#lycee" /> #lycee</td>
</tr>
<tr>
<td width="25%"><input type="radio" name="chan" value="#25-35" /> #25-35</td>
<td width="25%"><input type="radio" name="chan" value="#35-45" /> #35-45</td>
<td width="25%"><input type="radio" name="chan" value="#senior" /> #senior</td>
<td width="25%"><input type="radio" name="chan" value="#charme" /> #charme</td>
</tr>
</table>
<br />
<table width="100%">
<font size="2" face="Arial, Helvetica, sans-serif"><font color="#0070d9">
<strong>Région :</strong>
</font></font>
<tr>
<td width="25%"><input type="radio" name="chan" value="#nord-ouest" /> #nord-ouest</td>
<td width="25%"><input type="radio" name="chan" value="#nord-est" /> #nord-est</td>
<td width="25%"><input type="radio" name="chan" value="#ile-de-france" /> #ile-de-france</td>
<td width="25%"><input type="radio" name="chan" value="#centre" /> #centre</td>
</tr>
<tr>
<td width="25%"><input type="radio" name="chan" value="#sud-ouest" /> #sud-ouest</td>
<td width="25%"><input type="radio" name="chan" value="#sud-est" /> #sud-est</td>
<td width="25%"><input type="radio" name="chan" value="#corse" /> #corse</td>
<td width="25%"><input type="radio" name="chan" value="#dom-tom" /> #dom-tom</td>
</tr>
<tr>
<td width="25%"><input type="radio" name="chan" value="#lille" /> #lille</td>
<td width="25%"><input type="radio" name="chan" value="#strasbourg" /> #strasbourg</td>
<td width="25%"><input type="radio" name="chan" value="#marseille" /> #marseille</td>
<td width="25%"><input type="radio" name="chan" value="#nantes" /> #nantes</td>
</tr>
<tr>
<td width="25%"><input type="radio" name="chan" value="#bordeaux" /> #bordeaux</td>
<td width="25%"><input type="radio" name="chan" value="#lyon" /> #lyon</td>
<td width="25%"><input type="radio" name="chan" value="#paris" /> #paris</td>
<td width="25%"><input type="radio" name="chan" value="#toulouse" /> #toulouse</td>
</tr>
</table>
<br />
<table width="100%">
<font size="2" face="Arial, Helvetica, sans-serif"><font color="#0070d9">
<strong>Loisirs :</strong>
</font></font>
<tr>
<td width="25%"><input type="radio" name="chan" value="#cinema" /> #cinema</td>
<td width="25%"><input type="radio" name="chan" value="#culture" /> #culture</td>
<td width="25%"><input type="radio" name="chan" value="#jeux" /> #jeux</td>
<td width="25%"><input type="radio" name="chan" value="#musiques" /> #musiques</td>
</tr>
<tr>
<td width="25%"><input type="radio" name="chan" value="#sciences" /> #sciences</td>
<td width="25%"><input type="radio" name="chan" value="#voyages" /> #voyages</td>
<td width="25%"><input type="radio" name="chan" value="#sports" /> #sports</td>
<td width="25%"><input type="radio" name="chan" value="#loisirs" /> #loisirs</td>
</tr>
</table>
<br />
<table width="100%">
<font size="2" face="Arial, Helvetica, sans-serif"><font color="#0070d9">
<strong>Autre :</strong>
</font></font>
<tr>
<td width="25%"><input type="text" name="chanperso" value="#" maxlength="80" onfocus="return valideChanPerso();" /></td>
</tr>
</table>
</fieldset>
<center>
<table>
<tr>
<td><input name="gotchat" type="submit" class="submit" value="Chattez !" /></td>
<td> </td>
<td><input name="resetchat" type="reset" class="submit" value="Effacer" /></td>
</tr>
</table>
</center>
</FORM>
et du coté de l'applet c'est celui-ci :
Code :
params.nick = "<?php echo htmlspecialchars($_POST['nick'], ENT_QUOTES); ?>";
params.autojoin = "#salon,#salon";
params.language = "fr";
params.charset = "iso-8859-1";
params.realname = "<?php echo htmlspecialchars($_POST['age'], ENT_QUOTES) . " " . htmlspecialchars($_POST['sexe'], ENT_QUOTES) . " " . htmlspecialchars($_POST['ville'], ENT_QUOTES); ?>";
params.showRegisterNicknameButton = "true";
Pouvez-vous m'aider à résoudre ce soucis svp ? Merci d'avance.