please help! when submit button is clicked it should open the link which is in another file
-
#this is my first file where i need the submit button to open the link from the second file returned...2nd file is given below please refer
<% Set oRs=Server.CreateObject("adodb.recordset") strSQL = "SELECT * FROM projects" oRs.Open strSQL, conn Do while not oRs.EOF if Request.Form("code") = oRs("Code") then Response.Write "" Response.Write "Choose :" Response.Write oRS ("Code") & " " & oRs("Description") & " " oRs.MoveNext else Response.Write "" Response.Write oRS ("Code") & " " & oRs("Description") & " " oRs.MoveNext end if loop %> # the second file displays the link matching the users input..i want this click to be in the submit button... Continue <% code=Request.Form ("exmp")%> <% yr=Request.form ("year") %> <% mnth=Request.form("month") %> <% if Request.form("sub")="Latest" THEN %> <% if Request.form("report")="manage" THEN %> <% var=(code)& "m.pdf" %> CLICK HERE TO OPEN THE FILE <% ELSE %> <% var1=(code)& "c.pdf" %> CLICK HERE TO OPEN THE FILE <% end if %> <% else %> <% if Request.form("type")="manage" THEN %> <% var2=yr & "\" & mnth & "\" & (code)& "m" & (mnth) & (yr) %> [CLICK HERE TO OPEN THE FILE](<%=(var2)%>.pdf) <% ELSE %> <% var3=yr & "\" & mnth & "\" & (code)& "c" & (mnth) & (yr) %> [CLICK HERE TO OPEN THE FILE](<%=(var3)%>.pdf) <%end if %> <% end if %>
bobo -
#this is my first file where i need the submit button to open the link from the second file returned...2nd file is given below please refer
<% Set oRs=Server.CreateObject("adodb.recordset") strSQL = "SELECT * FROM projects" oRs.Open strSQL, conn Do while not oRs.EOF if Request.Form("code") = oRs("Code") then Response.Write "" Response.Write "Choose :" Response.Write oRS ("Code") & " " & oRs("Description") & " " oRs.MoveNext else Response.Write "" Response.Write oRS ("Code") & " " & oRs("Description") & " " oRs.MoveNext end if loop %> # the second file displays the link matching the users input..i want this click to be in the submit button... Continue <% code=Request.Form ("exmp")%> <% yr=Request.form ("year") %> <% mnth=Request.form("month") %> <% if Request.form("sub")="Latest" THEN %> <% if Request.form("report")="manage" THEN %> <% var=(code)& "m.pdf" %> CLICK HERE TO OPEN THE FILE <% ELSE %> <% var1=(code)& "c.pdf" %> CLICK HERE TO OPEN THE FILE <% end if %> <% else %> <% if Request.form("type")="manage" THEN %> <% var2=yr & "\" & mnth & "\" & (code)& "m" & (mnth) & (yr) %> [CLICK HERE TO OPEN THE FILE](<%=(var2)%>.pdf) <% ELSE %> <% var3=yr & "\" & mnth & "\" & (code)& "c" & (mnth) & (yr) %> [CLICK HERE TO OPEN THE FILE](<%=(var3)%>.pdf) <%end if %> <% end if %>
boboYou need a JavaScript to acheive that. Vasudevan Deepak Kumar Personal Homepage namespace LavanyaDeepak
Personal Weblog
The World of Deepak and Lavanya
ViewPoint 24x7 -
You need a JavaScript to acheive that. Vasudevan Deepak Kumar Personal Homepage namespace LavanyaDeepak
Personal Weblog
The World of Deepak and Lavanya
ViewPoint 24x7