|
-
Jan 28th, 2002, 08:05 AM
#1
Thread Starter
Addicted Member
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.
-
Jan 28th, 2002, 08:10 AM
#2
PowerPoster
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.
-
Jan 28th, 2002, 08:11 AM
#3
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 : 
-
Jan 28th, 2002, 10:34 AM
#4
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|