Results 1 to 4 of 4

Thread: I´m realy stupid , please help !

  1. #1
    Guest

    Angry

    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

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  3. #3
    New Member
    Join Date
    Aug 2000
    Location
    South Africa
    Posts
    13
    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
    Stefan SA

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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
  •  



Click Here to Expand Forum to Full Width