Bonjour a tous,
Comment je peux utiliser 2 <form> dans la meme page car j'utilise la base de donnees et code JavaScript.
Comment je peux Modifier mon code pour utiliser plusieurs action dans une seul page.
le code JavaScript pour générer un mot de passe pour chaque utilisateur.

Exemple:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html><head>
<SCRIPT LANGUAGE="JavaScript">

function randomPassword(10)
{
	chars ="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
	pass= "";
	for(x=0;x<10;x++)
	{
		i = Math.floor(Math.random() * 62);
		pass += chars.charAt(i);
	}
	return pass;
	}
	function formSubmit()
	{
		passform.password.value = randomPassword(10);
	return false;
}
</script></head><body>
<form action="..." methode="..."> <!-- 1ere utilisation de Form -->
<table border="1">
	<tr>
		<td align="left" valign="top">
			User Name : <input name="username" type="text" dir="ltr" lang="en" size="20" maxlength="255">
		</td>
		<td>
			<form name="passform"> <!-- 2eme utilisation de Form -->
			Password : <input name="password" type="text" size="70" tabindex="1" onChange=""><br />
			<input type="button" value="Generate" onClick="javascript:formSubmit()" tabindex="2">
			<input type="reset" value="Clear" tabindex="3"></center>
			</form>
		</td>
		<td valign="top"><?PHP	// Code PHP pour sauvegarder le information	?></td>
	</tr>
	<tr><td colspan="3" align="center" valign="top"><input name="save" type="submit" value="Save"></td>
	</tr>
</table></form>	</body></html>