dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Function Help - Newbie needs help

  1. #1
    Join Date
    Jun 2006
    Posts
    112

    Function Help - Newbie needs help

    Begginer - Using Classic ASP - Dreamweaver - SQL 2008 - I have a Web page where I create a Session that houses an ID based on the user's input. The ID can either start with a W or not. I pass the Session to an SQL query which brings back data used in a Web form that has some fields on the form auto-populated. I want to be able to have a function that would, based on the Session ID, go to formA if the Session starts with W or goes to formB if it does not start with a W. Any help is greatly appreciated.

  2. #2
    Join Date
    Feb 2013
    Posts
    15
    Sorry, if I am mistaken, but isnīt ASP short for active server pages?

    That does not seem to be Javascript anymore and it could very well be you are posting in the wrong forum.

    Again, sorry if I am wrong on that matter and sorry for not being helpful at all. ASP I have no knowledge of.

  3. #3
    Join Date
    Jun 2006
    Posts
    112
    Figured it out on my own - but thanks anyway - I used this
    <%

    If (LEFT(Session("WITEM"),1) <> "W") Then
    Response.Redirect("abc.asp")
    Else
    Response.Redirect("xyz.asp")
    End If
    %>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles