Form med 2 submit buttons
Hej eksperterer det muligt at oprette en form med 2 submit buttons? og hvis ja, hvordan skriver jeg scripten. her er en del af filen opretbruger.asp hvor i sub validate oprettes forbindelse med DB og dermed skal der være en script som handler om problemmet.
på forhånd tak
<%
Response.Write "<form action=" & " method=post >"
%>
<table border="0" align="center" cellpadding="0" bordercolor="ffffff" cellspacing="0" style="border-collapse: collapse" width="50%" id="AutoNumber1">
<tr>
<td with="25%">Username (max 50): </td>
<td><input type="text" name="UserName" size="25%"></td>
</tr>
<tr>
<td>Password (max. 9): </td>
<td><input type="Password" name="psw" size="20"></td>
</tr>
<tr>
<td>Repeat Password: </td>
<td><input type="Password" name="psw2" size="20"></td>
</tr>
<tr><td><br></td></tr>
<tr>
<td align="left"><input type="submit" name="submit1" value="Submit and add new user" style="width: 98%"></td>
<td align="left"><input type="submit" name="submit2" value="Submit and return home" style="width: 98%"></td>
</tr>
<tr><td><br></td></tr>
<tr>
<td align="center"><input type="reset" value="Reset" name="B2" style="width: 48%"></td>
<td align="center"><input type="reset" value="Cancel" name="B2" style="width: 48%" OnClick="index.html"></td>
</tr>
</table>
<br>
</form> </body></html>
<%
End Sub
'---------------------------------------
Sub Validate