Forum Clubic

Faire un formulaire et recevoir les réponses

Bonjour, j’aimerais faire le même formulaire que la photo ici : http://img198.imageshack.us/img198/2828/formulaire.jpg

J’ai réussi grâce au code source mes seulement j’aimerais recevoir les réponses dans mon email.

Voilà merci :slight_smile:

Il est légal ton truc?

Bah moi ses pas pour le même jeux ^^ donc a priori oui mes tu m’aide pas là xd

Tu peux utiliser la fonction mail en php pour envoyer des mails… mais faut php.

Heu je mi connais pas trop ^^ il ni a pas un code en html ?

Si. Avec la balise . Au lieu d’avoir action=“foobar.php”, tu fous action="mailto:email@XXXX.com"

mais tu recevras grosso modo de la merde, d’où php …

Attend voilà le code tu pourrais m’aider ? :confused:

		<script language="JavaScript" type="text/javascript">
		function ServerCodes()
		{
		  var ServerCodeStr = document.Codes.ServerName.options[document.Codes.ServerName.selectedIndex].value;
		  switch (ServerCodeStr)
		  {
		  	case "Allister":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Amayiro":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Brumaire":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Danathor":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Djaul":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Domen":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Goultard":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Hecate":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Hel Munster":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Helsephine":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Hyrkul":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Jiva":
	document.Codes.price1.value = "40,000 Kamas";
	document.Codes.Quantities.value = "40000";
	break;
	case "Kuri":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Lily":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Maimane":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Many":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Menalt":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Mylaise":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Oto Mustam":
	document.Codes.price1.value = "40,000 Kamas";
	document.Codes.Quantities.value = "40000";
	break;
	case "Otomai":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Pouchecot":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Raval":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Rosal":
	document.Codes.price1.value = "100,000 Kamas";
	document.Codes.Quantities.value = "100000";
	break;
	case "Rushu":
	document.Codes.price1.value = "100,000 Kamas";
	document.Codes.Quantities.value = "100000";
	break;
	case "Rykke-Errel":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Shika":
	document.Codes.price1.value = "100,000 Kamas";
	document.Codes.Quantities.value = "100000";
	break;
	case "Silouate":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Silvosse":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Solar":
	document.Codes.price1.value = "100,000 Kamas";
	document.Codes.Quantities.value = "100000";
	break;
	case "Summens":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Ulette":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;
	case "Vil-Smisse":
	document.Codes.price1.value = "60,000 Kamas";
	document.Codes.Quantities.value = "60000";
	break;

		  }
		}		
		function isMailOk(ad_email){
			if (document.images){
				re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
				re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
				if (!ad_email.match(re) && ad_email.match(re_two)){
					return true;
				}
				return false
			}
			return true;
		}
		function verifform(){
			var verif='';
			var stop=0;
			var j=0;		
				if (document.Codes.charname.value == '')
					verif=verif+'\n- Nom du personnage';
				if (document.Codes.country.value == '')
					verif=verif+'\n- Nom Pays';		
				if (document.Codes.email.value == '')
					verif=verif+'\n- Email';
				if (verif == ''){		
					if(!isMailOk(document.Codes.email.value)){
						verif=verif+'\n- Veuillez entrer une adresse email valide !';
					}
				}
			if (verif != ''){
				alert('Required information: '+verif);
				stop=1;
			}	
			if (stop==0){
				document.Codes.submit();
			}
		}
		</script>
		<FORM METHOD="POST" ACTION="" NAME="Codes" ID="Codes" onSubmit="verifform();return false;">
		<INPUT TYPE="hidden" NAME="topay" VALUE="Yes">
		<TABLE style="border:0;font-weight:bold;width:500px;">
		<TR>
			<TD width="150">1.Serveur:</TD>
			<TD width="450">
			<SELECT NAME="ServerName" ID="ServerName" OnChange="ServerCodes();">		
			<OPTION VALUE='Allister'>Allister</OPTION>

<OPTION VALUE='Amayiro'>Amayiro</OPTION>
<OPTION VALUE='Brumaire'>Brumaire</OPTION>
<OPTION VALUE='Danathor'>Danathor</OPTION>
<OPTION VALUE='Djaul'>Djaul</OPTION>
<OPTION VALUE='Domen'>Domen</OPTION>
<OPTION VALUE='Goultard'>Goultard</OPTION>
<OPTION VALUE='Hecate'>Hecate</OPTION>
<OPTION VALUE='Hel Munster'>Hel Munster</OPTION>
<OPTION VALUE='Helsephine'>Helsephine</OPTION>

<OPTION VALUE='Hyrkul'>Hyrkul</OPTION>
<OPTION VALUE='Jiva'>Jiva</OPTION>
<OPTION VALUE='Kuri'>Kuri</OPTION>
<OPTION VALUE='Lily'>Lily</OPTION>
<OPTION VALUE='Maimane'>Maimane</OPTION>
<OPTION VALUE='Many'>Many</OPTION>
<OPTION VALUE='Menalt'>Menalt</OPTION>
<OPTION VALUE='Mylaise'>Mylaise</OPTION>
<OPTION VALUE='Oto Mustam'>Oto Mustam</OPTION>

<OPTION VALUE='Otomai'>Otomai</OPTION>
<OPTION VALUE='Pouchecot'>Pouchecot</OPTION>
<OPTION VALUE='Raval'>Raval</OPTION>
<OPTION VALUE='Rosal'>Rosal</OPTION>
<OPTION VALUE='Rushu'>Rushu</OPTION>
<OPTION VALUE='Rykke-Errel'>Rykke-Errel</OPTION>
<OPTION VALUE='Shika'>Shika</OPTION>
<OPTION VALUE='Silouate'>Silouate</OPTION>
<OPTION VALUE='Silvosse'>Silvosse</OPTION>

<OPTION VALUE='Solar'>Solar</OPTION>
<OPTION VALUE='Summens'>Summens</OPTION>
<OPTION VALUE='Ulette'>Ulette</OPTION>
<OPTION VALUE='Vil-Smisse'>Vil-Smisse</OPTION>
 
			</SELECT>
			 1 Code = <INPUT TYPE="text" NAME="price1" id="price1" VALUE="60,000 Kamas" Size=30 readonly style="border:0;color:red;">

			<INPUT TYPE="hidden" NAME="Quantities" ID="Quantities" VALUE="60000">
			<INPUT TYPE="hidden" NAME="GameName" VALUE="Dofus">

			</TD>
		</TR>
		<TR>
			<TD>2.Nom du personnage:</TD>
			<TD><INPUT TYPE="text" NAME="charname" Size="30" VALUE=""></TD>
		</TR>
		<TR>
			<TD>3.Nom Pays:</TD>

			<TD>
			<INPUT TYPE="radio" NAME="country" VALUE="France" Checked> France  
			</TD>
		</TR>
		<TR>
			<TD>4.E-Mail:</TD>
			<TD><INPUT TYPE="text" NAME="email" Size="30" VALUE=""></TD>
		</TR>

		<TR>
			<TD>5.Msn/AIM:</TD>
			<TD><INPUT TYPE="text" NAME="Msn" Size="30" VALUE=""></TD>
		</TR>
		<TR>
			<TD colspan="2">6.T&eacute;l&eacute;phone pour obtenir 1 code de 1 semaine , 8 chiffres:</TD>
		</TR>

		<TR>
			<TD colspan="2">
			<TABLE border="0">
			<Tr><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD></Tr><Tr><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD></Tr><Tr><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD></Tr><Tr><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD></Tr><Tr><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD><TD><INPUT TYPE="text" NAME="CodeNumber" SIZE="20" MaxLength="8"></TD></Tr>
			</TABLE>
			</TD>
		</TR>
		<TR>
			<TD><INPUT TYPE="submit" VALUE="Continuer" class="add"></TD>

			<TD> </TD>
		</TR>
		</TABLE>
		</FORM>
		
		</div>	
		<div id="right">

  1. Alors laisse tomber et passe à autre chose.
  2. Ou instruis toi sur les disciplines suivantes : les bases de la programmation web, html pour les nuls, initiation à php

J’ai tendance à penser que ca ne sert à rien de t’aider. Tu piges que dalle à ce que tu copies colles, tout ce que tu veux c’est limite qu’on te ponde un truc tout fait, qui te servirait à rien pour la raison précédente.
Edité le 13/07/2009 à 09:30

Je n’aurais pas dis mieux…

Tu parle d’un forum d’aide -_-

C’est du beau. Ceci étant, et en dehors des insultes qui te valent un bon ban d’une semaine, je t’ai déjà donné la réponse. Faudrait pas en plus que je fasse le boulot à ta place.

Et vitamin1981, je pense que cela suffira pour aujourd’hui. 'fin bon quoi, dans un troll, c’est autant celui qui se fait piéger que celui qui piège qui est responsable… Je te prierai donc d’arrêter de heurter la sensibilité de nos jeunes kikoo lol !