This topic is locked
[SOLVED]

 Passing login variables to login.php?

8/13/2005 12:47:11
PHPRunner General questions
jwoker author

I have a php/mysql website and my phprunner app will be called from mysite. I would like to pass the login information to myapp - something like - \phprunnerdir\login.php?username=$user&password=$pass . I have phprunner set to use a hardcoded login ($user and $pass). Can you help me with the modifications I need to make? I get kind of lost when I try and read through login.php on my own.
Also, I only have ssh access to my server so I use the phprunner.php to connect to mysql. When I build myapp and upload it - does myapp continue to use phprunner.php to connect to mysql database. If so, what do I need to change so that myapp does not have to rely on phprunner.php after it has been uploaded?
Thanks

Sergey Kornilov admin 8/15/2005

Hi,
to pass username and password to login.php please do the following:

Open login.php in a text editor and replace all occurences of

$_POST with $_REQUEST.

Then you can use the following URL to get to your pages.

http://..../login.php?btnSubmit=Login&username=$user&password=$pass



where $user and $pass are your actual username and password.
phprunner.php file is used by PHPRunner wizard only.

You may delete it after you build the pages.

jwoker author 8/15/2005

That worked great, thanks.

J
Jepsen 2/5/2008

Great lesson and it still works perfectly with PHPR 4.2b build 340

Thanks fpr sharing this one.
Morten