ASP (VB) Login + Additional URL parameter?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default ASP (VB) Login + Additional URL parameter?

    I have a basic ASP VB login page from DW MX, works great. Eventhough on the
    login page I also got a dropdown menu with language selection. The selected
    value should be passed on to the "Logon Successfull"-page too, so the user gets
    the "Logon Successfull"-page in his/her own language :)

    So far I've looked around for possible extensions but weren't able to find any
    so far. I believe it should be do-able in some way with Session("Lang") =
    Request.Form("Lang") or Lang = Request.Form("Lang"), but I haven't been able to
    make it work in order to pass it onto the "Login Successfull"-page.

    Anyone got an idea?

    Herrie|2 Guest

  2. Similar Questions and Discussions

    1. #40486 [NEW]: dechex additional parameter
      From: john dot meskes at senecac dot on dot ca Operating system: PHP version: 5.2.1 PHP Bug Type: Feature/Change Request Bug...
    2. user login with URL parameter
      This syntax fails: $MM_redirectLoginSuccess = "displaylist.php?id=<?php echo $row_userlist; ?>"; This simplified syntax works, but of course is...
    3. Date Parameter For Saved Parameter Queries
      Hi again, I finally got to using saved parameter queries in my application (a big thank you to Bob Barrows for helping me with this). Currently...
    4. [PHP-DEV] Adding parameter to ocisavelob() && $lob->save() and additional function to OCI8 extension
      If you're interrested in writing the patch yourself (and this sounds like a rather minor one), your best bet is to just write it and submit it for...
    5. [PHP-DEV] Adding parameter to ocisavelob() && $lob->save() and additional
      Hi, all I want to propose to add an additional parameter to ocisavelob() && $lob->save();, which will allow to tell how much of LOB to read from...
  3. #2

    Default Re: ASP (VB) Login + Additional URL parameter?

    i'm assuming you're using the DW login behavior. as it creates a
    recursive page (a page that calls itself) you can pass the selected
    language to the "Login successful page" as a URL parameter. find the
    MM_redirectLoginSuccess var and add:

    MM_redirectLoginSuccess="Login_successful_page.asp ?lang=" &
    Request.Form("language")



    <SELECT name="language">
    <OPTION value="english" selected>English</OPTION>
    <OPTION value="spanish">Spanish</OPTION>
    </SELECT>


    then you'll be able to recover it in the "Login successful page" with a
    Request.QueryString("lang")

    another option could be to store the selected language in a session var
    to have it accessible in all pages

    HTH,

    Manuel



    Herrie|2 wrote:
    > I have a basic ASP VB login page from DW MX, works great. Eventhough on the
    > login page I also got a dropdown menu with language selection. The selected
    > value should be passed on to the "Logon Successfull"-page too, so the user gets
    > the "Logon Successfull"-page in his/her own language :)
    >
    > So far I've looked around for possible extensions but weren't able to find any
    > so far. I believe it should be do-able in some way with Session("Lang") =
    > Request.Form("Lang") or Lang = Request.Form("Lang"), but I haven't been able to
    > make it work in order to pass it onto the "Login Successfull"-page.
    >
    > Anyone got an idea?
    >
    Manuel Socarras Guest

  4. #3

    Default Re: ASP (VB) Login + Additional URL parameter?

    A Session would probably be the best way to go or you can pass the Language
    identifer in every page.

    You can set additional Sessions in the Login behaviour, and as you have a form
    drop down in your login form, then this is simple enough.

    Have a look at my tutorial on setting additional sessions in the Login
    behaviour
    ([url]http://www.cgw3.co.uk/tutorials/tutorial.asp?TutorialID=37&CategoryID=3[/url])
    although it uses information from the database rather then the form you are
    using, you will be able to see how it works and use it for your project.



    Originally posted by: Herrie|2
    I have a basic ASP VB login page from DW MX, works great. Eventhough on the
    login page I also got a dropdown menu with language selection. The selected
    value should be passed on to the "Logon Successfull"-page too, so the user gets
    the "Logon Successfull"-page in his/her own language :)

    So far I've looked around for possible extensions but weren't able to find any
    so far. I believe it should be do-able in some way with Session("Lang") =
    Request.Form("Lang") or Lang = Request.Form("Lang"), but I haven't been able to
    make it work in order to pass it onto the "Login Successfull"-page.

    Anyone got an idea?



    CarlGrint Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139