Results 1 to 4 of 4

Thread: Asp problem

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    19

    Asp problem

    Hi guys , i just started to learn asp , and i already have my first problem.
    I made a simple post system , you can view it all at :
    http://www33.brinkster.com/pierreke

    the problem is situated ( i think ) in vervolg.asp

    here 's the source :
    <%@ language ="vbscript" %>
    <%
    SELECT CASE request.form("Cmdkeuze")
    CASE "toevoegen"
    response.redirect "http://www33.brinkster.com/pierreke/toevoegen.asp"
    CASE "lezen"
    response.redirect "http://www33.brinkster.com/pierreke/gastlezen.asp"
    END SELECT
    %>

    can you help me out , normally he should go to the toevoegen.asp or the gastlezen.asp

  2. #2
    Don't know for sure, but try placing your request.form into a variable, then evaluate the variable's value in your select...case statement.

  3. #3
    Senior Member
    Join Date
    Jan 2003
    Posts
    220
    Whats the problem?
    [gloworange]And then it happened... a door opened to a world... rushing through the phone line like heroin through an addict\'s veins, an electronic pulse is sent out, a refuge from the day-to-day incompetencies is sought... a board is found. \"This is it... this is where I belong...\" I know everyone here... even if I\'ve never met them, never talked to them, may never hear from them again... I know you all...[/gloworange]

  4. #4
    Ninja Code Monkey
    Join Date
    Nov 2001
    Location
    Washington State
    Posts
    1,027
    I would put a case else statement in at the end that response.writes the value of the variable so you can see what is going wrong.
    "When I get a little money I buy books; and if any is left I buy food and clothes." - Erasmus
    "There is no programming language, no matter how structured, that will prevent programmers from writing bad programs." - L. Flon
    "Mischief my ass, you are an unethical moron." - chsh
    Blog of X

Posting Permissions

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