|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP and Forms
OK how do I do the PHP self thing?
I have seen many people do the PHP self thing on a form but can't seem to find one when I need it. <form action="login.php" method="post" name="Logon" > Please help.
__________________
Thanks, Attila http://www.glorynaspiration.com http://www.abitofthings.com |
|
#2
|
|||
|
|||
|
u mean this?
<form action="<?=$PHP_SELF?>" method="post" name="Logon" > |
|
#3
|
|||
|
|||
|
Yes that fixes part now I need the other part.
here is what I got. PHP Code:
|
|
#4
|
|||
|
|||
|
You're missing an IF statement to check to see if the form has been completed.
What you should do is insert a hidden value in the page that displays the form, and in your IF statement, check to see if the hidden value has been passed, if it hasn't, you display the html form. If it has, then display the welcome page.
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#5
|
|||
|
|||
|
Cookies and headers.
OK I got the form set up correctly I beleive. Now I am having problem with cookies and headers.
Here is the script. PHP Code:
To try this file you can go hereLogin logon: test password: test To view the actual page it will be on you can go here I know I am having some problems with the cookie being set I have that wrong and am unable to find my booboo....Also this login page I would like to have it as an included file withing my index page. So if I need to login I just login. If I already have been logged in then the cookie part welcomes me back to the page. Can someone please help. Last edited by Attila : December 7th, 2002 at 05:37 PM. |
|
#6
|
|||
|
|||
|
PHP Code:
Can someone please help...I can log in now and it finds me but if I close the window and go back in another it dosen;t know how I am. Once again yo can use test for user name and test for password. The link is.Link Please help.... Thanks Attila Last edited by Attila : December 10th, 2002 at 01:20 AM. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP and Forms |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|