Parameters

Can anybody help me out?

who knows how to use parameters on an HTML file?

I now how it works on a PHP file or on an ASP file, but when I create a link like this:[blue] document.location.href="users.html?GB="+document.LoginForm.username.value;[/blue] it doesn't work.

[size=5]wat do I do wrong...?[/size]

Comments

  • : Can anybody help me out?
    :
    : who knows how to use parameters on an HTML file?
    :
    : I now how it works on a PHP file or on an ASP file, but when I create a link like this:[blue] document.location.href="users.html?GB="+document.LoginForm.username.value;[/blue] it doesn't work.
    :

    First up, what you are trying to do is Javascript. You will need code on the page you are loading (users.html) to handle the parameters you are passing.

    Hope that helps. Post up more details if you want more help.

    Heather
  • [code=pre]


    Intranet




    Gebruikersnaam:
    Wachtwoord:





    [/code]

    this is the file I am sending the parameter with.
    Now I want to use that parameter in the file [b]gebruikers/"+document.LoginForm.Gebruikersnaam.value+
    "_"+document.LoginForm.Wachtwoord.value+".html[/b]

    Does anyone know how to...?

    If I just use the following code it won't work:
    [code=pre]


    Login Script










    [/code]

    I even tried placing a span label but with no effect...

    -mac-
    ;-)

  • still no reply... Hmm.. Mabe it's not clear what I mean...?

    the main idea is that I have variable and that I want to use that variable in the document I'm calling:

    [code=pre]
    document.location.href="MyFile.html?MyVar="+MyVar;
    [/code]

    [b][red]Now, how do I use MyVar in MyFile.html ?[/red][/b]


    ;-)
    -mac-
    mailto:programmersheaven@mac-doggie.nl
    the Netherlands...


  • I found a solution to my problem.
    I've Created a script with a function that extracts the parameter from the document.location.href

    if anyone else is interrested in this file you can download it at my site (it's free)

    surf to www.mac-doggie.nl


    ;-)
    -mac-
    mailto:programmersheaven@mac-doggie.nl
    the Netherlands...


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories