Forum Moderators: coopster

Message Too Old, No Replies

use echo to auto login

add echo to a link so I can log in to account automatically

         

webfirst

4:28 pm on Jun 23, 2007 (gmt 0)

10+ Year Member



I am a php newbie, so excuse me for the lack of correct verbage. I was sent a link from a service provider and was to that I could echo in info so customers and myself could log in to account autmatically. I don't know squat about how this is done. Any help would be greatly appreciated. Here is the link they sent:

http://www.example.com/index.php?Log=1&login=domain.com&pwd=password

I will be installing this link into customer's cpanel so they can log in to this service strait from there.

[edited by: dreamcatcher at 5:59 pm (utc) on June 23, 2007]
[edit reason] Used example.com and unlinked. [/edit]

eelixduppy

1:30 am on Jun 24, 2007 (gmt 0)



Assuming I understand your question, it was probably something like this:

<form method="post" action="page.php">
domain:<input type="text" name="domain" value="<?php echo $_GET['login'];?>" />
password:<input type="text" name="password" value="<?php echo $_GET['pwd'];?>" />
</form>

This echos the GET superglobal [us.php.net] accordingly.

Habtom

8:41 am on Jun 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Also remember to put the password in the password format if that is what you want to achieve. Like this:

<input name="password" value="<?php echo $_GET['pwd'];?>" />

Hab

eelixduppy

1:59 pm on Jun 24, 2007 (gmt 0)



I believe Hab meant something like this:

<input name="password" [b]type="password"[/b] value="<?php echo $_GET['pwd'];?>" />

;)

Habtom

6:18 am on Jun 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



tnx eelix, yes that is what I meant.

webfirst

1:58 pm on Jun 25, 2007 (gmt 0)

10+ Year Member



Thanks, this is what I was looking for and it works fine now.