03. juni 2000 - 16:44
Der er
9 kommentarer og 1 løsning
Problemer med request("mode")!
Hej! Min problemer lyder på flg.: filen hedder i dette tilfælde default.asp <% cliShow = request("show") cliSection = request("section") cliCommand = request("command") if cliShow = "" then %> welcome <a href="default.asp?section=task&command=paste">paste</a> <% end if if cliSection = "task" then if cliCommand = "paste" then %> do the paste function... <% end if end if %> det giver mig bare default.asp siden vist, som hvis ikke der var nogle request's ... - Hvad kan problemet være, og hvordan løser jeg det?
Annonceindlæg fra Barco
- når jeg altså trykker på linket der vises i default.asp
START MED <% end if if cliSection = "task" AND cliCommand = "paste" then %> do the paste function... <% end if %>
og <% cliShow = Request("show") cliSection = Request.QueryString("section") cliCommand = Request.QueryString("command") if cliShow = "" then %>
...ingen forandring... - den gør stadig det samme.
okay, lidt forandring... jeg prøvede at lave flg. som du skrev: -------- indhold af modetest.asp -------- <% cliShow = Request("show") cliSection = Request.QueryString("section") cliCommand = Request.QueryString("command") if cliShow = "" then %> welcome <a href="modetest.asp?section=task&command=paste">paste</a> <% end if if cliSection = "task" AND cliCommand = "paste" then %> do the paste function... <% end if %> --------------- slut -------------- resultat af siden: ----------------------- welcome paste <-- er et link... ----------------------- trykker man på paste, bliver resultatet flg.: ----------------------- welcome paste do the paste function... ----------------------- og paste er stadig et link...
<% cliShow = request("show") if cliShow = "" then %> welcome <a href="default.asp?section=task&command=paste">paste</a> <% end if if Request.QueryString("section") = "task" AND Request.QueryString("command") = "paste" then %> do the paste function... <% end if %>
<% cliShow = Request("show") cliSection = Request.QueryString("section") cliCommand = Request.QueryString("command") if clisection = "" and cliCommand ="" then %> welcome <a href="modetest.asp?section=task&command=paste">paste</a> <% end if if cliSection = "task" AND cliCommand = "paste" then %> do the paste function... <% end if %>
smukt!! nu virker det! :) Takker Mvh Petzen
04. juni 2000 - 16:15
#10
Grunden var at cliShow stadig var "" når man clicker! Så derfor udskiftede jeg dem med clisection = "" and cliCommand ="" Fordi de ikke var "" når man clickede på linket!
Kurser inden for grundlæggende programmering