Go To (or something like that)

  • Thread starter Thread starter Nigel N. Brooks
  • Start date Start date
N

Nigel N. Brooks

I realize this has probably been asked before - but please bear with me on
this one.

I'm putting together a website for the HS Band which has about 250 members.

What I want to do is to be able to publish individual student accounts
which reflect the current balance for their funds - I'll be doing this by
publishing individual pdfs which will be coded with the student id number
(example 123456.pdf)

What I am trying to do is to be able to semi restrict viewing of the
individual accounts by including a page which would allow the input of the
student id number - which would then direct the inquirer to that particular
webpage or pdf file.

I'm thinking that password encoding 250 individual webpages would be a
really time consuming job.

So my question is as follows:

How can I make a gateway webpage that will allow the individual to input the
student number into a box - and get directed to the webpage or pdf
associated with that number (hopefully easily) - I did find a java
application called "codelink" that would actually fit the bill - but
unfortunately it requires that the pages have an html extension
http://silk.webware.co.nz/Products/Codelink/

Thanks

Nigel Brooks
 
On a Windows server? No problem. Code an ASP page to open the file in a new
window. Something like:

<%
Option Explicit

Dim studentNumber

studentNumber = Request("studentNumber")

<script>
window.open('<%=studentNumber%>.pdf');
</script>

You would then name the textbox studentNumber and submit the page to this
asp page (which could be the same page as the form, if you wish). This
covers the "basic security" needs. You can get more elaborate, with a
database, and only serve up a window when a correct number is input, or even
add a password.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
Back
Top