Help passing variable between html pages.

T

teejayem

I have two html pages

page1.html and page2.html

I have a link on page 1 to page 2 and i would like to pass a variable
to page 2 so that it can be used in vbscript on page 2.

can I use

page2.html?vaiable=test

then some sort of vbscript when page2 loads to grab the string from
the url?
 
M

matatunos

(e-mail address removed) a présenté l'énoncé suivant :
I have two html pages

page1.html and page2.html

I have a link on page 1 to page 2 and i would like to pass a variable
to page 2 so that it can be used in vbscript on page 2.

can I use

page2.html?vaiable=test

then some sort of vbscript when page2 loads to grab the string from
the url?

ask google for "javascript" and "forms"

http://www.quirksmode.org/js/forms.html

this method is "GET", you have a limit in the length of the string you
can use, with POST you can pass larger amounts of data
 
S

Stevo

I have two html pages
page1.html and page2.html

I have a link on page 1 to page 2 and i would like to pass a variable
to page 2 so that it can be used in vbscript on page 2.

can I use

page2.html?vaiable=test

then some sort of vbscript when page2 loads to grab the string from
the url?

Yes you can do that. Beware of XSS script attacks though (google it).
 

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

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top