Mit spørgsmål blev ikke forstået "intNew = ???"
Følgene kode, gør at siden til at blive opdelt i 3 sektioner.nothing = 1 sektion
password = 2 sektion
newpass = 3 sektion
Koden virker fint hvis man udbytter nothing, password og newpass
med tal =
0 = 1 sektion
1 = 2 sektion
2 = 3 sektion
Så hvorfor virker følgene kode kun med tal, og ikke ned navne ???
<%
if not request("New") <> "" then
intNew = nothing
else
intNew = request("New")
end if
%>
<html>
<head>
<title></title>
</head>
<table border="0" width="60%">
<% if intNew = nothing then %>
<tr>
<td width="50%">Brugernavn : </td>
<td width="50%" align="right"><input type="text" name="username" size="29"></td>
</tr>
<% End if %>
<% if intNew = password then %>
<tr>
<td width="50%">Gammelt kodeord : </td>
<td width="50%" align="right"><input type="password" name="password" size="29"></td>
</tr>
<% End if %>
<% if intNew = newpass then %>
<tr>
<td width="50%">Nyt kodeord :</td>
<td width="50%" align="right"><input type="password" name="newpass1" size="29"></td>
</tr>
<% End if %>
<tr>
<td width="100%" colspan="2" align="center"><input type="submit" value="Submit" name="submit"></td>
</tr>
</table>
</body>
</html>
Hilsen Tue
t_sandal@yahoo.com
