This is the real meat of the demonstration !!
If you are serious about this matter, I believe that it is important that you look at and understand every line of code in all of the several files mentioned in here.
If you do not understand anything, please feel free to ask and I will try to explain.
showscript.asp?fn=dataInputPage.src will show the source for dataInputPage.asp .
- A block of "INCLUDE" files
The Include files are common to both of the major files - the details of them can be seen at webprot-8.asp
We will go through them in detail later.
- General Security Housekeeping
The "Functions" used in this block can be found in the included "general_functions.asp" file.
- General Pre-Display Processing
This uses a Function to get Todays date in a real world format.
- The HTML script for the WebPage to be served to the client
The only thing worthy of special note is the "hidden" form variable with the name of PageRef
You will recall that this was generated in the "General Security Housekeeping" block and stored in a SESSION VARIABLE.
This will be checked when the page is submitted !!
You will realise that this will make cloned copies of this page useless !!
You will also note that this page is submitted to "do_dataInputPage.asp".
I have a standard for myself that is to put "do_" in front of the "displaying page" - itmakes the names a bit easier to remember.
Well that is the first page over - it was not too difficult was it ??
The visible input fields are meaningless - they were chosen to allow some deep validation to be demonstrated on the next page.