Bonjour,

J'ai le code pour un formulaire avec le code suivant:
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<center><strong>INSCRIÇÃO</strong></center>
<title></title>
</head>
<body bgcolor="#98fb98"><br />
<br />
<form method="post">
 
Nome: <input name="nome" size="40" type="text" /><br />
<br />
 
Data de nascimento: <input name="data_nasc" size="10" type="text" /><br />
<br />
 
Morada: <input name="morada" size="50" type="text" /><br />
<br />
 
Telefone: <input name="telefone" size="9" type="text" /><br />
<br />
 
E-mail <input name="email" size="30" type="text" /><br />
<br />
 
Local de trabalho: <input name="local_trab" size="30" type="text" /><br />
<br />
 
Morada do local de trabalho: <input name="mor_trab" size="50" type="text" /><br />
<br />
 
User: <input name="user" size="20" type="text" /><br />
<br />
 
Password: <input name="password" size="15" type="text" /><br />
<br /><input name="MAX_FILE_SIZE" value="250000" type="hidden" />
Foto: <input name="foto" size="40" type="file" /><br />
<br /><input name="enviar" value="Enviar" type="submit" /><?php
$name=$_POST['nome'];
$birt_date=$_POST['data_nasc'];
$address=$_POST['morada'];
$phone=$_POST['telefone'];
$email=$_POST['email'];
$local_work=$_POST['local_trab'];
$address_work=$_POST['mor_trab'];
$user_login=$_POST['user'];
$password=$_POST['password'];
$picture=$_POST['foto'];
 
$con=mysql_connect("localhost","Paulo","fe2008")
or die("Não foi possível estabelecer conexão com o servidor MySQL.";
 
$db=mysql_select_db("user_profile",$con)
or die("Não foi possível estabelecer ligação com a base de dados.");
 
$res=mysql_query(INSERT INTO user_profile VALUES('','$name','$birt_date', '$address', '$phone', '$email', '$local_work', '$address_work', 'user_login', '$password', '$picture');
?></form>
</body>
</html>
Quand je le teste il m'apparait dans l'écran: Method Not Allowed
The requested method POST is not allowed for the URL /programdor_l/index.html.

Quelqu'un sait pourquoi?

Merci d'avance.