04. juni 2002 - 08:20
Der er
13 kommentarer og 1 løsning
Request.form
Jeg har oplavet det et par gang at når jeg udlæser fra mit form (<%=Request.Form("1")%>) og mit textbox hedder 1 og står i en form så kan jeg ikke udlæse eller det står ikke noget i det! Hvad gør jeg forkerdt for det virker på andre sider
Annonceindlæg fra Cognizant
AI er ikke problemet. Eksekvering er.
Der bliver investeret massivt i AI. Teknologien er mere tilgængelig end nogensinde, og ambitionerne er høje. Alligevel oplever mange virksomheder, at resultaterne udebliver.
<% if request("vide") = "edit" then %> <form name="formen" method="post" action="<%= Request.ServerVariables("SCRIPT_NAME") %>?show=editing&id=<%=rs("id")%>"> <table width="457" border="0" cellspacing="0" cellpadding="0" bgcolor="#4272a5" align="center"> <tr> <td width="3" height="3"> </td> <td width="50%" height="3"><b><font color="#FFFFFF">Værd At Vide</font></b></td> <td width="50%" height="3"> <div align="right"><font size="2" color="#FFFFFF">Skrivet Den : <% Response.Write FormatDateTime(rs("dato"), vbShortDate) %> </font></div> </td> <td width="3" height="3"> </td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" bgcolor="#FFFFFF" colspan="2"></td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#FFFFFF"> <td width="100"> <div align="right">Overskrift <b>:</b> </div> </td> <td> <input type="text" name="overskrift" class="textbox" size="45" value="<%=rs("overskrift")%>"> </td> </tr> </table> </td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" bgcolor="#FFFFFF" colspan="2"></td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" colspan="2"> </td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" bgcolor="#FFFFFF" colspan="2"></td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" bgcolor="#FFFFFF" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="100"> <div align="right">Værd at vide <b>: </b></div> </td> <td> <textarea name="1" cols="45" rows="12" class="textbox"><%=(replace("" & RS("vide"),"<br>",vbcrlf))%></textarea> </td> </tr> </table> </td> <td width="3" height="3"> </td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" bgcolor="#FFFFFF" colspan="2"></td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" colspan="2"></td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" bgcolor="#FFFFFF" colspan="2"></td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="50%" height="3" bgcolor="#FFFFFF"> <div align="center"><img src="images/save.gif" width="22" height="23" align="absmiddle"> <a href="?vide=editing&id=<%=rs("id")%>">Ret</a> <tt>>></tt></div> </td> <td width="50%" height="3" bgcolor="#FFFFFF"> <div align="center"><img src="images/back.gif" align="absmiddle"> <a href="?show=info&id=<%=rs("id")%>&vide=reedit"><font class="forumc">Tilbage</font></a> <tt>>></tt></div> </td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" bgcolor="#FFFFFF" colspan="2"></td> <td width="3" height="3"></td> </tr> <tr> <td width="3" height="3"></td> <td width="100%" height="3" colspan="2"></td> <td width="3" height="3"></td> </tr> </table> </form> <% end if %> <% if request("vide") = "editing" then %> <%=Request.Form("overskrift")%> | Overskrift her<br> <%=Request.Form("1")%> | Vide her <% 'Set Rs = Conn.Execute("Update vide Set overskrift='" & Request.Form("overskrift") & "', vide='" & Request.Form("vide") & "' where id="& Request("id")) 'response.redirect("?show=info&id=" & request("id") & "&vide=reedit") end if %>