NetTalk Central

Author Topic: Login from another web page  (Read 3764 times)

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Login from another web page
« on: August 08, 2007, 09:27:20 AM »
Hi Guys,

I am interfacing with another website that has the user sign in.  This sign in information must be passed to my site. 

How do I form the url that must be passed to me so that it contains the user name and
password?

Where in my site do I examine what has "possibly" been passed and do the login validation stuff?

When attempting an url that looks like this:  127.0.0.1:91?login=junk,password=junk
I get page not found errors.
Gregory C. Bailey

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: Login from another web page
« Reply #1 on: August 10, 2007, 02:23:44 AM »
You're on the right track, but the URL from the other site needs to contain the page name. eg

127.0.0.1:91/IndexPage/?login=junk,password=junk

In the login page you can test for the existence of the parameters using
p_web.IfValueExists('login')

cheers
Bruce

lanmicro

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Email
Re: Login from another web page
« Reply #2 on: August 10, 2007, 12:49:40 PM »
Hi Bruce,

I figured out how to do it, but I do not get individual entries on the line.  When posting:

http://127.0.0.1:91/FramePage?loginname=john,PassPhrase=password

I get john,PassPhrase=password in the value for LoginName.  I get nothing in the value for PassPhrase.  I am currently working around it by parsing the LoginName string, but I shouldn't have to do that should I?
Gregory C. Bailey

Alan Telford

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: Login from another web page
« Reply #3 on: August 12, 2007, 01:27:41 PM »
Try this URL:

http://127.0.0.1:91/FramePage?loginname=john&PassPhrase=password

The general format is:
http://ipaddress/Pagename?field1=value1&field2=value2&field3=value3

You must use the "&" to separate multiple fields not ","

Cheers,
Alan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: Login from another web page
« Reply #4 on: August 12, 2007, 10:36:31 PM »
Hi Greg,

yes, Alan is right - I missed that you used the wrong separator.

Cheers
Bruce