Date: 07/04/00
- Next message: Bogdan Morar: "Re: [phplib] Chat client in PHP"
- Previous message: Jaume Homs: "[phplib] Chat client in PHP"
- In reply to: Carl Youngblood: "[phplib] Hybrid login form?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Carl,
I recently started using PHPLIB for user authetication so this may not be the
best solution but...;
I edited the loginform.ihtml file to contain the content for the public homepage
of my website. It has header and footer by PHP includes, some static content and
the following:
<form action="<?php print $this->url() ?>" method=post>
<table border=0 bgcolor="#eeeeee" align="left" cellspacing=0 cellpadding=4>
<tr valign=top align=left>
<td>Member ID:</td>
</tr>
<tr>
"])) print $this->auth["uname"] ?>" size="8" maxlength="8"></td>
</tr>
<tr>
<td align=left><input type="submit" name="submit" value="Login now"></td>
</tr>
</table>
<?php global $userid; if ( isset($userid) ): ?>
<!-- failed login code -->
<p><font color=red><b>Your Member ID is invalid.</b></font> Please contact
our membership service at: <contact info omitted> to renew your membership.<br>
<?php endif ?>
</form>
Once a member executes the login, the "real" home page with protected content
for members only is displayed.
Patrick
Carl Youngblood wrote:
> I want to have a login form on my site's main page along with a lot of other
> dynamic content. The problem is, the PHPLIB's login form is a page by
> itself. How can I make my own login form that will still authenticate the
> user properly and send them to the right place? What functions would I need
> to call manually in the auth class?
>
> Carl Youngblood
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
-- Patrick Durusau Director of Research and Development Society of Biblical Literature pdurusau <email protected>--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Bogdan Morar: "Re: [phplib] Chat client in PHP"
- Previous message: Jaume Homs: "[phplib] Chat client in PHP"
- In reply to: Carl Youngblood: "[phplib] Hybrid login form?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

