469,271 Members | 1,547 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Help passing variable between html pages.

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?

Oct 18 '07 #1
2 4846
te******@gmail.com 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
Oct 18 '07 #2
te******@gmail.com wrote:
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).
Oct 18 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by leegold2 | last post: by
5 posts views Thread by Raju V.K | last post: by
10 posts views Thread by Bob Bedford | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.