This is a discussion on Opening html files from PHP script within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi Thanx guys for the previous help on authentication. I could not get hold of my host, so decided I'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
Thanx guys for the previous help on authentication. I could not get hold of my host, so decided I'll just go with form authentication iso Apachy - works fine now. could anyone give me the code to open an html page from my login page? in other words, once a user logs in, he/she is derected to another page? in my current code I have: echo "memberarea/members.html"; for a successful login This needs to be swapped with what ever code to open a page..... |
|
|||
|
Nakkie schreef:
> Hi > Thanx guys for the previous help on authentication. > I could not get hold of my host, so decided I'll just go with form > authentication iso Apachy - works fine now. > > could anyone give me the code to open an html page from my login page? in > other words, once a user logs in, he/she is derected to another page? > in my current code I have: echo "memberarea/members.html"; > for a successful login > This needs to be swapped with what ever code to open a page..... > > header('Location: memberarea/members.html'); -- Posting at the top because that's where the cursor happened to be, is like shitting in your pants because that's where your asshole happened to be. http://www.essetee.be |
|
|||
|
Thanx a mil that works perfectly.
I just discovered something else....... On my login page I use a simple username and password form where the PHP code authenticate that against a .txt file The authentication works fine entering usernames and passwords. When leaving the username and password fields blank - it authenticates you.... I used my scrip that generate the accounts and add the username and password pair to my 'txt file with a dummy password, but it still authenticates when leaving the fields blank.... Any ideas? "Serge Terryn" <serge@essetee.be> wrote in message news:aF4lh.262145$QD.5675039@phobos.telenet-ops.be... > Nakkie schreef: >> Hi >> Thanx guys for the previous help on authentication. >> I could not get hold of my host, so decided I'll just go with form >> authentication iso Apachy - works fine now. >> >> could anyone give me the code to open an html page from my login page? in >> other words, once a user logs in, he/she is derected to another page? >> in my current code I have: echo "memberarea/members.html"; >> for a successful login >> This needs to be swapped with what ever code to open a page..... > > header('Location: memberarea/members.html'); > > -- > Posting at the top because that's where the cursor happened to be, > is like shitting in your pants because that's where your asshole > happened to be. > > http://www.essetee.be |
|
|||
|
..oO(Serge Terryn)
>header('Location: memberarea/members.html'); header('Location: http://example.com/memberarea/members.html'); The full URL is required. Micha |
|
|||
|
Nakkie schreef:
> Thanx a mil that works perfectly. > > I just discovered something else....... > On my login page I use a simple username and password form where the PHP > code authenticate that against a .txt file > > The authentication works fine entering usernames and passwords. When leaving > the username and password fields blank - it authenticates you.... > I used my scrip that generate the accounts and add the username and password > pair to my 'txt file with a dummy password, but it still authenticates when > leaving the fields blank.... > > Any ideas? > > > > "Serge Terryn" <serge@essetee.be> wrote in message > news:aF4lh.262145$QD.5675039@phobos.telenet-ops.be... >> Nakkie schreef: >>> Hi >>> Thanx guys for the previous help on authentication. >>> I could not get hold of my host, so decided I'll just go with form >>> authentication iso Apachy - works fine now. >>> >>> could anyone give me the code to open an html page from my login page? in >>> other words, once a user logs in, he/she is derected to another page? >>> in my current code I have: echo "memberarea/members.html"; >>> for a successful login >>> This needs to be swapped with what ever code to open a page..... >> header('Location: memberarea/members.html'); >> >> -- >> Posting at the top because that's where the cursor happened to be, >> is like shitting in your pants because that's where your asshole >> happened to be. >> >> http://www.essetee.be > > if(empty($var)) { do something; } -- Posting at the top because that's where the cursor happened to be, is like shitting in your pants because that's where your asshole happened to be. http://www.essetee.be |
|
|||
|
"Michael Fesser" <netizen@gmx.de> wrote in message news:h6iap214kb55b8k2m86ifdlsrv2u40bn25@4ax.com... > .oO(Serge Terryn) > >>header('Location: memberarea/members.html'); > > header('Location: http://example.com/memberarea/members.html'); > > The full URL is required. > > Micha Thanx a mil Micha - got it sorted |
![]() |
| Thread Tools | |
| Display Modes | |
|
|