|
-
Sep 17th, 2000, 01:58 PM
#1
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
-
Sep 18th, 2000, 07:35 AM
#2
Frenzied Member
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.
Harry.
"From one thing, know ten thousand things."
-
Sep 18th, 2000, 09:09 AM
#3
New Member
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
-
Sep 18th, 2000, 09:48 AM
#4
Frenzied Member
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.
Harry.
"From one thing, know ten thousand things."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|