Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-13-2009, 01:24 AM   PM User | #1
shake
New to the CF scene

 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
shake is an unknown quantity at this point
If statement Help

i am trying to make this code when after some one logs in it will say something like Welcome (username) You have (amount of messages) and then a link to the inbox and a log out button i know it a If statement but i am super new to Php So i came here to see if you guys could help.
Code:
<div>
<h5>Login</h5>
<form name="login" method="post" action="/fourms/ucp.php?mode=login">
	<span style="font-size:10pt;">Username:</span> <br />
    <input name="username" type="text" value="" size="12" />
	<span style="font-size:10pt;">Password:</span> <br />
    <input name="password" type="password" size="12" /><br />
	<span style="font-size:10pt;">Remember me?</span>
    <input type="checkbox" name="remember" />
	<input type="submit" name="submit" value="Login" />
</form>
</div>
shake is offline   Reply With Quote
Old 10-13-2009, 01:58 AM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
This involves using PHP SESSIONS to check the user/pass for validity and then
setting the SESSION so they remain logged-in until they close their browser or
log off.

Too much to describe here, but use Google to find tutorials ...
Like this one:
http://devzone.zend.com/article/646
mlseim is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:22 AM.


Advertisement
Log in to turn off these ads.