Login page

This is a discussion on Login page within the PHP Language forums, part of the PHP Programming Forums category; I tried to make a login page, and store all the required information so that the user will not be ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2005
Pitaridis Aristotelis
 
Posts: n/a
Default Login page

I tried to make a login page, and store all the required information so that
the user will not be able to go directly to a non-authorized page, but the
whole idea was a failure. Does anybody know where I can find a script like
that?

Thanks in advance
Aristotelis


Reply With Quote
  #2 (permalink)  
Old 04-20-2005
Geoff Berrow
 
Posts: n/a
Default Re: Login page

I noticed that Message-ID: <1113979607.129784@athnrd02> from Pitaridis
Aristotelis contained the following:

>I tried to make a login page, and store all the required information so that
>the user will not be able to go directly to a non-authorized page, but the
>whole idea was a failure.


No it wasn't, you successfully found out something did not work.

Why not post your idea and let's see what's wrong with it?
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Reply With Quote
  #3 (permalink)  
Old 04-20-2005
jerry gitomer
 
Posts: n/a
Default Re: Login page

Pitaridis Aristotelis wrote:
> I tried to make a login page, and store all the required information so that
> the user will not be able to go directly to a non-authorized page, but the
> whole idea was a failure. Does anybody know where I can find a script like
> that?
>
> Thanks in advance
> Aristotelis
>
>

The html script that collects the data should include something
like:



<form action="goval.php" method="POST">
<table align="center" border="8" bgcolor=Silver>
<tr class="required">
<td class="lbl">Your Login ID:</td>
<td class="inp"><input type="text" name="ac" size="32"
maxlength="32"></td>
</tr>
<tr class="required">
<td class="lbl">Your Password </td>
<td class="inp"><input type="password" name="password" size="32"
maxlength="32"></td>
</tr>
</table>
<br><br>
<div align="center"> <input value="Sign in" type="submit">
</div>


</form>


Your php program (in this case named goval.php) should include:

//////////////////////////////
// Check for presence of valid input

$ac = $_POST['ac'];
$password = $_POST['password'];
if (empty($ac)) {


echo "goval - missing input parameters";
echo "ac: " . $_POST['ac'] . "<br>";
}


///////////////////////////////////
// operations using the variables that were passed in.

if ( $password == '' ) {
$password = change_password_function($ac);
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0