Results 1 to 4 of 4

Thread: Input passing [solved]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    Liverpool, England
    Posts
    155

    Input passing [solved]

    Would it be possible to link to a page that has a form in it, and "fill in" the input fields in that form with values from the original page, without having access to the code for the 2nd page?

    That is, say I derive a username and a password from someone previously on a site, then they click on a link to Hotmail and the username and password on the Hotmail page is entered automatically, and possibly auto-processed as well. Possible?

    Oh, the Hotmail thing isn't specifically what I want to do, I was just illustrating what I meant.

    Cheerio
    Last edited by sweevo; Jan 28th, 2002 at 10:27 AM.

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Smile hi

    U can pass values to different pages using querystrings.

    something like:

    Code:
    <a href="page2.asp?name=Tom&group=myown">Click here</a>
    It is not advisable to pass passwords in querystring.

  3. #3
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: Input passing

    Originally posted by sweevo
    Would it be possible to link to a page that has a form in it, and "fill in" the input fields in that form with values from the original page, without having access to the code for the 2nd page?

    That is, say I derive a username and a password from someone previously on a site, then they click on a link to Hotmail and the username and password on the Hotmail page is entered automatically, and possibly auto-processed as well. Possible?

    Oh, the Hotmail thing isn't specifically what I want to do, I was just illustrating what I meant.

    Cheerio
    Yes it is possible, first thing you need to know is what method are they using to send data[Post or Get]. If they are using get method then you can simply redirect the user to the form handling script and append the parameters.

    e.g process.asp?username=danial&Password=iamnottellingyou

    If they are using post [like hotmail] then you have to create a form with the username and password textbox, make sure you set the action of the form to the script you want[eg. http://www.hotmail.com/process.asp].

    I have tried it with hotmail and it works without any problem, i can let user log on to hotmail from my page.

    Hope this helps
    Danial
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Location
    Liverpool, England
    Posts
    155
    Thanks, I never thought about utilising other system's processing pages like that.

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