Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: multi function confirmation page


Message #1 by jake williamson 28 <jake.williamson@2...> on Thu, 23 May 2002 13:34:50 +0100
guys and girls,

now that my w2k server is up and running again i can do some real work!

i'm wondering if it is possible to build a multi function confirmation page?
at the moment, i have all the admin pages for the site pointing to one
confirmation page - would like to show a customised message dependat on
where the user has come from.

for example, i'm on the amend page, i do my changes, hit submit and the page
goes to confirm.asp. in that page i've set up this asp:

<% If Request.ServerVariables("HTTP_REFERER") = "amend.asp" Then
Response.Write "Would you like to amend another record?" End If %>

this works!!

the thing is that if the url has variables passed it dont, eg if the url
sting is

confirm.asp?entinfoid=10&custid=10

the code dont work cos it dont match!!

so what i need is something that says "if the url sting contains 'amend.asp'
then...."

almost changing the equals to like??

whatcha think??

cheers,

jake


  Return to Index