Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. please help! when submit button is clicked it should open the link which is in another file

please help! when submit button is clicked it should open the link which is in another file

Scheduled Pinned Locked Moved Web Development
sysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bobolov
    wrote on last edited by
    #1

    #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

    V 1 Reply Last reply
    0
    • B bobolov

      #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

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      You need a JavaScript to acheive that. Vasudevan Deepak Kumar Personal Homepage namespace LavanyaDeepak
      Personal Weblog
      The World of Deepak and Lavanya
      ViewPoint 24x7

      B 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        You need a JavaScript to acheive that. Vasudevan Deepak Kumar Personal Homepage namespace LavanyaDeepak
        Personal Weblog
        The World of Deepak and Lavanya
        ViewPoint 24x7

        B Offline
        B Offline
        bobolov
        wrote on last edited by
        #3

        it would be a of great help if i could get any help on the Javascript on it thank u

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups