Click to See Complete Forum and Search --> : I´m realy stupid , please help !
Hi
I don´t understand one thing:
I want to fill some textboxes on my webpage, i have a Form with the post command( i think this is the description) but i want to send that data to other webpage, what do i have to do on the 2nd webpage so she can receive the data that the first one sent to her, some code could help me.Thank you.
Mega_Sorcerer
HarryW
Sep 18th, 2000, 07:35 AM
What kind of language are you using? I know how to do this in ASP:
To retrieve variables passed with the POST method you use
request.form("variable_name")
If they are passed with the GET method you use
request.querystring("variable_name")
I'm not sure how you'd do this in PHP or JSP or anything other than ASP. In case you need to know, when you use the POST method to pass form data, the variable names and their associated values are passed in the HTTP request body.
stefank
Sep 18th, 2000, 09:09 AM
I needed to use only client side script for this project.
if I wanted to pass 1 variable all i did was concatenate the value to the webpage i was navigating to. a "?" was used to spit the two strings.
in the other web page I used a function to break the two appart.
eg
window.navigate("newwebpage.html?" & variable)
function get_ext_var()
dim str, strAR
str = window.location '"newwebpage.html?hello"
strAR = split(str, "?", -1 ,1 )
if ubound(strAR) = 0 then
get_ext_var = ""
else
str = strAR(1)
get_ext_var = str
end if
end function
HarryW
Sep 18th, 2000, 09:48 AM
Well that's exactly what I was going to suggest :)
I think the post method is really just for posting data to the web server.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.