Bonsoir tout le monde,

j'ai mon formulaire qui commence à prendre forme, toutefois il n'est pas totalement fini : j'aimerais avoir un seul bouton "Envoyer" plutôt que 3 (2 pour mes upload de fichier, puis le bouton final). J'aimerais garder celui en bas de page, et enlever les 2 autres précédents. Ainsi je peux choisir 2 fichiers à uploader, écrire mon texte, etc.. et cliquer sur "Envoyer", tout en bas de la page. Suis-je assez clair et si oui est-ce possible ?

Mon formulaire web :
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Config File</title>
<SCRIPT language="Javascript">
function Affiche_sources_yes(){
div_sources.style.visibility="visible";
 
}
function Affiche_sources_no(){
div_sources.style.visibility="hidden";
 
}
 
function Affiche_doc_yes(){
div_doc.style.visibility="visible";
 
}
function Affiche_doc_no(){
div_doc.style.visibility="hidden";
 
}
 
</SCRIPT>
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
input, textarea
{
font-family:"Times New Roman", Times, serif; /* police du texte tap?'int?eur des champs */
}
 
input:focus, textarea:focus /* Quand le curseur est sur un champ (ne marche pas sur IE) */
{
background-color:#FFFF99;
}
 
label
{
color:blue;
}
 
legend /* On met en valeur les titres des fieldset */
{
font-family:Arial, "Arial Black", Georgia, "Times New Roman", Times, serif;
color:#F8971D;
font-weight:bold;
}
 
fieldset
{
margin-bottom:15px; /* Une marge pour s?rer les fieldset */
background-color:#FFFFCC;
}
 
 
 
</style>
 
</head>
 
<body>
 
<fieldset>
 
 
<center>
<img src=".\logo.jpg" height="49" width="160"  >
</center>
 
</fieldset>
 
<form method="POST" action="upload.php">
 
<fieldset>
 
<legend>Application "Test"</legend>
 
 
<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
 
</tr>
</table>
<br>
 
 
<label for="infos">Do you have the setup file ?
</label>
 
 
<br/>
 
<p>
<input type="radio" name="sources" value="yes" id="yes" tabindex="40" onClick="Affiche_sources_yes();"/> <label for="">yes</label><br />
<input type="radio" name="sources" value="no" id="no" tabindex="70" onClick="Affiche_sources_no();" /> <label for="">no</label><br />
</p>
 
 
 
 
<div id="div_sources" style="visibility:hidden">
 
 
<form name="sendfile" method="POST" ENCTYPE="multipart/form-data" action="upload.php">
 <input type="hidden" name="MAX_FILE_SIZE" value="30000000"> 
<p>Setup File : 
<input type="file" name="file" size="20"> 
</p> 
<input type="submit" value="Send" name="send"> 
</form> 
 
 
 
</div>
</fieldset>
 
<fieldset>
 
<label for="infos">Would you have some information to provide about this application ? (Install Guideline or anything else)
</label>
 
 
<br/>
 
<p>
<input type="radio" name="sources" value="yes" id="yes" tabindex="40" onClick="Affiche_doc_yes();"/> <label for="">yes</label><br />
<input type="radio" name="sources" value="no" id="no" tabindex="70" onClick="Affiche_doc_no();" /> <label for="">no</label><br />
</p>
 
<div id="div_doc" style="visibility:hidden">
 
 
 <input type="hidden" name="MAX_FILE_SIZE" value="30000000"> 
<p>Install guideline : 
<input type="file" name="guideline" size="20"> 
</p>
<input type="submit" value="Send" name="send"> 
</form> 
 
</div>
 
 
 
</fieldset>
 
<fieldset>
 
<label for="infos">Would you have any other information to provide ? (license key, the person that might use this application, or anything else..)
</label>
 
<br>
<TEXTAREA name="information" rows=10 COLS=40></TEXTAREA>
 
 
 
</fieldset>
 
 
 
<p>
<input type=submit value=Send> 
 
</p>
 
 
</form>
 
 
</body>
 
</html>
Merci pour votre aide