Variable value from one page to another

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mauro

    Variable value from one page to another

    I want to send a value called country to a page page2.asp from
    page1.asp. I have a field to entry this text value (variable fname)
    like this:

    <td class="titulos" width="14%">Sta tion Code: <input type="Text"
    name="fname" size="20" onchange=sub_co de()></td>
    ..
    ..
    ..
    function sub_code()
    {
    url_1 = "page2.asp?coun try=" + fname; (***)
    parent.page2.lo cation.replace( url_1);
    }

    but it did not work. I think the error is in (***) because I got no
    sucess sending the value of variable 'fname' in this line. This
    variable (fname) is inserted in text field in the HTML code. Should I
    use in (***) %fname ? How can I pass this value (fname) ?

    What I´m doing wrong ?

    I´m beginner in ASP...

    Thanks.

    Cheers,
    Mauro
  • Ray at

    #2
    Re: Variable value from one page to another

    I don't know what that (***) line is supposed to be. I think you'd want
    document.formna me.fname.value; . But I don't know. This is a client-side
    question you're asking. Try asking in client-side group.
    m.p.scripting.j script, for example.

    Ray at work

    "Mauro" <mauro@momentus .com.br> wrote in message
    news:19745e4b.0 310100642.1c723 88c@posting.goo gle.com...[color=blue]
    > I want to send a value called country to a page page2.asp from
    > page1.asp. I have a field to entry this text value (variable fname)
    > like this:
    >
    > <td class="titulos" width="14%">Sta tion Code: <input type="Text"
    > name="fname" size="20" onchange=sub_co de()></td>
    > .
    > .
    > .
    > function sub_code()
    > {
    > url_1 = "page2.asp?coun try=" + fname; (***)
    > parent.page2.lo cation.replace( url_1);
    > }
    >
    > but it did not work. I think the error is in (***) because I got no
    > sucess sending the value of variable 'fname' in this line. This
    > variable (fname) is inserted in text field in the HTML code. Should I
    > use in (***) %fname ? How can I pass this value (fname) ?
    >
    > What I´m doing wrong ?
    >
    > I´m beginner in ASP...
    >
    > Thanks.
    >
    > Cheers,
    > Mauro[/color]


    Comment

    Working...