jo, men problemmet er at jeg også skal bruge textarea til en andendel af siden, som kommer til at fylde en del. textarea bruger jeg på den presse.asp og på showpresse, skal jeg kunne se resultatet. men det virker ikke. Nogen anden forslag?
' Hvis brugeren ikke er logget rigtigt på sendes brugeren tilbage til login-siden med en fejlbesked!
If Session("login") <> "logget" Then 'Response.Redirect "login.asp?fejlbesked=Du+har+ikke+logget+ind!" Response.Redirect "login.asp?fejlbesked=<font face=""verdana"" size=""5"" color=""red""><b>Du+har+ikke+logget+ind!</b></font>" End If %>
case "Opdater" 'call mailAll ' send to whole list response.Write("Test1") case "Vispressemeddelelse" ' or just send to editor response.Write("Test1") 'call sendMessage(request("framail")) Response.Redirect "showpresse.asp" case else call showForm
<b><font face="Arial" size="2" color="#000077"> - Til overskriften bruges - Font Arial, size 2, color blue "#000077" fed <textarea name="overskrift" cols="74" rows="2">
</textarea></font></b></td> </tr> <tr> <td width="154" bgcolor="#10215A" height="25"><i><font size="2" <i face="Arial" color="#808080">Manchet</font></i></td> <td width="487" height="25"><font size="2" <i face="Arial"><i> - Til Manchetten bruges - Font Arial, size 2, color sort kursiv skrift <textarea name="manchet" cols="74" rows="5" face="Arial">
</textarea></i></font> </tr> <tr> <td width="154" bgcolor="#10215A" valign="top" height="350"><font color="#054483" face="Times New Roman" size="2"> <br> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="5">hedsbrev<br> </font><font color="#054483" face="Times New Roman" size="2"><br> </font><font color="#054483" face="Times New Roman" size="3"> </font><font color="#054483" face="Times New Roman" size="6">Nyhe<br> </font><font color="#054483" face="Times New Roman" size="5"><br> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="5">Ny</font><font color="#054483" face="Times New Roman" size="5">hedsbrev<br> </font><font color="#054483" face="Times New Roman" size="6"><br> </font><font color="#054483" face="Times New Roman" size="5"> </font><font color="#054483" face="Times New Roman" size="7">dsbre</font><b><font color="#054483" face="Times New Roman" size="5"><br> </font></b><font color="#054483" face="Times New Roman" size="3"> </font><font color="#054483" face="Times New Roman" size="7"><b><br> Nyh</b></font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="3"> </font></td> <td width="625" height="1" valign="top"><font face="arial" size = "2">
- Til brødteksten bruges - Font Arial, size 2, color sort <textarea name="brodtekst" cols="74" rows="20">
</textarea></font></td> </tr> <tr> <td width="168" bgcolor="#10215A" height="214" valign="top"><font color="#054483" face="Times New Roman" size="2"> <br> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="5">hedsbrev<br> </font><font color="#054483" face="Times New Roman" size="2"><br> </font><font color="#054483" face="Times New Roman" size="3"> </font><font color="#054483" face="Times New Roman" size="6">Nyhe<br> </font><font color="#054483" face="Times New Roman" size="5"><br> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="5">Nyhedsbrev</font></td> <td width="625" height="300" valign="top"><font face="arial"><font size="2"><b>Indsæt op til 3 fotos her:</b></font> <hr size="1" color="#000077">
' Hvis brugeren ikke er logget rigtigt på sendes brugeren tilbage til login-siden med en fejlbesked!
If Session("login") <> "logget" Then 'Response.Redirect "login.asp?fejlbesked=Du+har+ikke+logget+ind!" Response.Redirect "login.asp?fejlbesked=<font face=""verdana"" size=""5"" color=""red""><b>Du+har+ikke+logget+ind!</b></font>" End If
<div align="left"> <table border="0" cellpadding="0" cellspacing="0" width="680" height="126"> <tr> <td height="126" valign="top" align="left"> <div align="left"> <table border="0" cellpadding="0" cellspacing="0" width="673"> <tr> <td width="536" colspan="3" rowspan="2"><a href="../index.htm" target="_top"><img border="0" src="../images/top_presse.gif" alt="Til startside" width="374" height="80"></a></td> <td width="17" rowspan="2"> </td> <td width="169" valign="top" align="right"><font face="Arial" color="#808080" size="3">[</font> <a href="java script:window.close()"><font face="Arial" color="#000077" size="1">Luk vindue</font></a> <font face="Arial" color="#808080" size="3">]</font></td> </tr> <tr> <td width="169" valign="bottom" align="right"><font face="Arial" size="1" color="#808080">Udsendt den 21.10.2003</font></td> </tr> <tr> <td width="141" rowspan="3" bgcolor="#10215A" valign="top"><font color="#054483" face="Times New Roman" size="2"> <br> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="5">hedsbrev<br> </font><font color="#054483" face="Times New Roman" size="2"><br> </font><font color="#054483" face="Times New Roman" size="3"> </font><font color="#054483" face="Times New Roman" size="6">Nyhe<br> </font><font color="#054483" face="Times New Roman" size="5"><br> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="5">Ny</font><font color="#054483" face="Times New Roman" size="5">hedsbre<br> </font><font color="#054483" face="Times New Roman" size="6"><br> </font><font color="#054483" face="Times New Roman" size="5"> </font><font color="#054483" face="Times New Roman" size="7">dsbrev</font><b><font color="#054483" face="Times New Roman" size="5"><br> </font></b><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="3"> </font><font color="#054483" face="Times New Roman" size="7"><b>Nyh</b></font><font color="#054483" face="Times New Roman" size="5"><br> </font><font color="#054483" face="Times New Roman" size="1"><br> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="5">hedsbrev<br> </font><font color="#054483" face="Times New Roman" size="2"><br> </font><font color="#054483" face="Times New Roman" size="3"> </font><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="5"> </font><b><font color="#054483" face="Times New Roman" size="5"> </font></b><font color="#054483" face="Times New Roman" size="1"> </font><font color="#054483" face="Times New Roman" size="3"> </font><font color="#054483" face="Times New Roman" size="7"><b>Nyh</b></font><font color="#054483" face="Times New Roman" size="5"><br> </font></td> <td width="31"> </td> <td width="551" valign="top" colspan="3"><br> <b><font face="Arial" color="#000077" size="2"> <h3> <% =request.form("overskrift") %> </h3>
</font></b><font size="2" face="Arial"><br> <i>Byggecentrums udstilling i Ballerup sætter fokus på energiforbruget på en temadag søndag den 2. november. Her kan man få overblik over mulighederne og gode råd og tips hos eksperterne til nemme løsninger og fornuftige investeringer.<br> <br> </i></font></td> </tr> <tr> <td width="31"> </td> <td width="551" valign="top" colspan="3"><font face="Arial" size="2">Vi har snart i mange år hørt, at vi skal spare på energien og miljøet. En del gør også noget ved det og finder ud af det ikke er så svært. Men mange finder det stadig uoverkommeligt at sætte sig ind i de forskellige muligheder og får derfor ikke gjort noget ved det.<br> <br> Der er gratis adgang til Byggecentrum, Lautrupvang 1B, Ballerup og åbent kl. 10-17.<br> <br> Stue<br> <a href="../nyheder/billeder/danogipsStue.zip" target="_blank"><img border="0" src="../nyheder/billeder/danogipsStue_lille.jpg" width="113" height="150"></a><br> </font><font face="Arial" color="#808080" size="3">[ </font><font face="Arial" size="1"><a href="../nyheder/billeder/danogipsStue.zip" target="_blank"><font color="#000077">Download foto i høj opløsning</font></a> </font><font face="Arial" color="#808080" size="3">]</font><font face="Arial" size="1"> </font></td> </tr> <tr> <td width="31"> </td> <td width="365" valign="top"><font face="Arial" size="2"><br> Byggecentrum<br> Lautrupvang 1 B<br> 2750 Ballerup<br> </font><font face="Arial" size="1"> <br> </font><font face="Arial" size="2">E-mail:</font><font face="Arial" size="2"> </font><font face="Arial" size="1"><font color="#000077"></font></font><a href="XXXXXX"><font color="#000077" face="Arial" size="2">XXXXXXXx</font></a><font face="Arial" color="#808080" size="3"><br> </font><font face="Arial" size="2">Internet: <a href="XXXXXXX" target="_blank">XXXXXXbr> </a></font><font face="Arial" size="2"><font face="Arial" color="#808080" size="3"><br> [</font><b><font face="Arial" size="1"> </font></b><font face="Arial" size="1"><a href="#top"><font color="#000077">Til toppen af siden</font></a><font color="#000077"> </font><font face="Arial" color="#808080" size="3">]</font></font></font></td> <td width="17"> </td> <td width="169" valign="bottom" align="right"><font face="Arial" color="#808080" size="3">[</font> <a href="java script:window.close()"><font face="Arial" color="#000077" size="1">Luk vindue</font></a> <font face="Arial" color="#808080" size="3">]</font></td> </tr> </table> </div> <p> </td> </tr> </table> </div>
Lige en sidste ting, nu har jeg som du siger ikke så meget styr på <form>, men kan jeg bruge flere forskelige <form action....>, som hver går til forskellige asp sider? jeg havde tænkt mig at selve pressemeddelelse.asp skulle reloade sig selv, og udfra om det er Opdater eller vispressemedelesle man klikkede på, skulle funktionen hentes, dvs. at hele siden skulle være baseret på funktioner, og dette kode skulle så styre funktionerne:
select case request("button")
case "Opdater" call opdatesite case "Vispressemeddelelse" call showpressemeddelelse case else call showForm
end select
Men kan ikke finde ud af det med <form...>, nogen forslag? jeg er villig til at give 30 point mere for at få løst dette.
det jeg lige har skrevet kan nok misforståes. det jeg prøver at sige er: at man kan løse det på 2 måder, enten ved at have flere forskellige <fom action.....>, som går til hver sin side. eller også kunne man lave det hele på den samme side opdelt i funktioner.
Ikke en skjult knap, men et skjult text felt. Det er et almindeligt text felt der er skjult, dvs det kan ikke ses, men det er der. Det bruger man gerne til at putte "mode" og ligende ting i, for at brugeren ikke skal se det. så får man mulighed for at checke feltet og udfører, på asp i forhold til mode. Man kunne også bruge querystring, dvs urlen, men det ser ikke særligt pænt, plus at brugeren kan ændre url, og så vil dit script fejle.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.