Variable value from one page to another

M

Mauro

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%">Station Code: <input type="Text"
name="fname" size="20" onchange=sub_code()></td>
..
..
..
function sub_code()
{
url_1 = "page2.asp?country=" + fname; (***)
parent.page2.location.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
 
R

Ray at

I don't know what that (***) line is supposed to be. I think you'd want
document.formname.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.jscript, for example.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,126
Messages
2,570,750
Members
47,307
Latest member
Wimble

Latest Threads

Top