Tutorial-building Dynamic Websites

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 08, 2009, 03:49 AM
423497 members and 291072 Topics
Latest Member: o.b
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderators: OmniPotens, yawa-ti-de)  |  Tutorial-building Dynamic Websites
Pages: (1) (2) (3) (4) (5) Go Down Send this topic Notify of replies
Author Topic: Tutorial-building Dynamic Websites  (Read 6298 views)
webdezzi (m)
Re: Tutorial-building Dynamic Websites
« #128 on: April 08, 2009, 03:45 PM »

Hi Emmanuel,
Good to see Eggosbase go live, you might want to reserve egosbase.com, just to avoid headaches later on, the kind of headache seun is getting from [nairalist+s].com
thatsall
Re: Tutorial-building Dynamic Websites
« #129 on: April 18, 2009, 01:43 AM »

@ webdezzi,

pls i need a private chart with you. kindly contact me on mailme5485@yahoo.co.uk. pls asap.

thanks.
slimjo
Re: Tutorial-building Dynamic Websites
« #130 on: April 24, 2009, 05:37 PM »

wen is d class begining again, plz lets let up the fire again webdizzi
RuuDie (m)
Re: Tutorial-building Dynamic Websites
« #131 on: May 17, 2009, 12:32 PM »

Can any1 explain to me with codes how to implement a login page which will also create the session variables etc. - the simplest method possible

Been reading a php tutorial but the explanation's quite complex and confusing.
biggjoe (m)
Re: Tutorial-building Dynamic Websites
« #132 on: May 18, 2009, 08:21 AM »

Quote from: RuuDie on May 17, 2009, 12:32 PM
Can any1 explain to me with codes how to implement a login page which will also create the session variables etc. - the simplest method possible

Been reading a php tutorial but the explanation's quite complex and confusing.

Dreamweaver has a secure login script that can create sessions. It only requires a slight adjustment  if you encrypted your password.
RuuDie (m)
Re: Tutorial-building Dynamic Websites
« #133 on: May 21, 2009, 01:01 PM »

Quote from: biggjoe on May 18, 2009, 08:21 AM
Dreamweaver has a secure login script that can create sessions. It only requires a slight adjustment if you encrypted your password.

Hi joe,

Can u please explain how it works
JJYOU
Re: Tutorial-building Dynamic Websites
« #134 on: May 21, 2009, 01:22 PM »

1
biggjoe (m)
Re: Tutorial-building Dynamic Websites
« #135 on: May 23, 2009, 10:46 AM »

Quote from: RuuDie on May 21, 2009, 01:01 PM
Hi joe,

Can u please explain how it works

If u can use dreamweaver go to >> server behaviours >> user authentication >> login user

The dialogue box will come up for you to fill in your database, form, redirection pages pages.

DW lgin server behaviours also creates two sessions; $_SESSION['MM_Username'] and $_SESSION['MM_UserGroup'] its left for you to know how to make these two take effect on succesful login.
kok (m)
Re: Tutorial-building Dynamic Websites
« #136 on: May 26, 2009, 01:58 PM »

You guys are doing a great job in here. Kudos!! More blessings to you all! One love would make the world better place!
webdezzi (m)
Re: Tutorial-building Dynamic Websites
« #137 on: May 26, 2009, 10:32 PM »

also for session to work, you will need to check DW's login form page
i dont know if they have fixed it now, They always leave out the session_start() function
that function must run before any output.
*dhtml (m)
Re: Tutorial-building Dynamic Websites
« #138 on: May 28, 2009, 10:58 AM »

My own simple login implementation for learners goes like this:


a 3 page sample:

index.php : this is your home page. It will display login or logout depending on the state.
login.php: the page to process the login.
logout.php: to process your logout


index.php
Quote
<?php
session_start();

if($_SESSION['login_user_mode']==true) { ?>
Welcome Mr User to my secure php page
<a href="logout.php">Logout here</a>

<?php }  else { ?>

Please login to get started: [username: dhtml, password: ole]<br>
<form action="login.php" method="post">
<input type="text" name="username">
<input type="password" name="password">
<input type="submit">
</form>

<?php } ?>

login.php
Quote
<?php
session_start();

$username=$_POST['username'];
$password=$_POST['password'];

if($username=="dhtml"&&$password=="ole") {
$_SESSION['login_user_mode']=true; //set this variable to true if login is correct
} else {
$_SESSION['login_user_mode']=false; //set this variable to false if login is in-correct
}

ob_clean();
header("Location:index.php"); //redirect back to the home page
?>


logout.php
Quote
<?php
session_start();

$_SESSION['login_user_mode']=false; //logout user

ob_clean();
header("Location:index.php"); //redirect back to the home page
?>


Check online demo here: http://mwebng.net/demos/login2/
Download here: http://mwebng.net/demos/login2/login2.zip


Then step it up a lil bit advanced:

http://mwebng.net/demos/login/step1
http://mwebng.net/demos/login/step1.zip

http://mwebng.net/demos/login/step2
http://mwebng.net/demos/login/step2.zip

Any further questions, ask them here, webdezzi or myself will answer them all, have a nice day y'al

and dezzi, keep up the good work!
RuuDie (m)
Re: Tutorial-building Dynamic Websites
« #139 on: May 28, 2009, 04:32 PM »

The PHP keyword "die" - what exactly does it do and what other substitutes can be used in its place?
sledjama (m)
Re: Tutorial-building Dynamic Websites
« #140 on: May 29, 2009, 06:47 PM »

thanks dhtml.

trying to sensitize someone on the risk of not staying up to date with some current tactics employed by 419er.
given the fact that i love to use the closest possible scenario as example.
I got banned. who cares anyway, everyone has a reason for living.

Webdezzi is now Sledjama, Hopefully, i will be able to contribute to enuf threads before getting another bang.

*dhtml (m)
Re: Tutorial-building Dynamic Websites
« #141 on: May 30, 2009, 10:02 AM »

No problemo man. . .
fxmaxony (m)
Re: Tutorial-building Dynamic Websites
« #142 on: June 11, 2009, 01:37 PM »

@dhtml, pls can you help on how to design a fuctional form in a web page. thanks this will be appreciated
fxmaxony (m)
Re: Tutorial-building Dynamic Websites
« #143 on: June 11, 2009, 01:41 PM »

welcome@sledjama d webdezzi
*dhtml (m)
Re: Tutorial-building Dynamic Websites
« #144 on: June 11, 2009, 08:08 PM »

I am not exactly sure of what you mean by functional form, please expantiate, my sssinnglisheese is quite limited!
na2day? (m)
Re: Tutorial-building Dynamic Websites
« #145 on: July 21, 2009, 03:38 AM »

nice thread  Wink Wink
scottman (m)
Re: Tutorial-building Dynamic Websites
« #146 on: July 25, 2009, 11:14 PM »

Hello mates, I have gone tru all the articles here and I found myself lost, bcuz I am a new guy into the field and I am trying to build a website using macromedia (flash, fireworks and dreamweav, ) .Now how do I get my files togther and host them to the web?
thanks folks. Grin
na2day? (m)
Re: Tutorial-building Dynamic Websites
« #147 on: July 25, 2009, 11:52 PM »

Quote from: scottman on July 25, 2009, 11:14 PM
Hello mates, I have gone tru all the articles here and I found myself lost, bcuz I am a new guy into the field and I am trying to build a website using macromedia (flash, fireworks and dreamweav, ) .Now how do I get my files togther and host them to the web?
thanks folks. Grin


what kind'a site u wanna build? do u  knw how to use the programs u mentioned?  Undecided Undecided
*dhtml (m)
Re: Tutorial-building Dynamic Websites
« #148 on: July 26, 2009, 08:26 PM »

Quote from: na2day? on July 25, 2009, 11:52 PM

what kind'a site u wanna build? do u  knw how to use the programs u mentioned?  Undecided Undecided
That guy sounds like ekaite (he is still tryin to)
na2day? (m)
Re: Tutorial-building Dynamic Websites
« #149 on: July 27, 2009, 08:20 AM »

Quote from: *dhtml on July 26, 2009, 08:26 PM
That guy sounds like ekaite (he is still tryin to)

i am trying to get a feel of the guy, i wish they will be more specific rather than just throw a hail mary question on the forums
Efetur1
Re: Tutorial-building Dynamic Websites
« #150 on: July 27, 2009, 08:47 AM »

This is cool webdezzi! You've brought life to php programming. However, I like to just add that you should continue the good works and call for our help if you ever need any. Our skill span graphics design and programming.

Thanks all,
Efe
www.websitedevelopmentng.com
*dhtml (m)
Re: Tutorial-building Dynamic Websites
« #151 on: August 05, 2009, 05:14 PM »

Efetur1, na wa for you o, so you are now using webdezzi's spot to advertise abi?
debest1 (m)
Re: Tutorial-building Dynamic Websites
« #152 on: August 07, 2009, 04:28 PM »

webdezzi,
I need help with building a wedding website for a friend, i tend to use Dreamweaver/Photoshop so need your advice on how to proceed. my email is debest1@hotmail.co.uk
cheers
*dhtml (m)
Re: Tutorial-building Dynamic Websites
« #153 on: August 09, 2009, 12:05 PM »

ok o, webdezzi it is your call.
Jayhey
Re: Tutorial-building Dynamic Websites
« #155 on: August 19, 2009, 05:04 PM »

Please I can't install the sql, when it trying to execute (Starting sql fail). Please I don't understand, Help meeeeeeeeeeeee!
yinka007 (m)
Re: Tutorial-building Dynamic Websites
« #156 on: September 14, 2009, 08:58 AM »

interesting topic
 How To Start An Online Radio Station  Dynamic Web Design Tutorials Ft Javascript,Ajax,DOM,PHP,MySQL...  Nudist Camp Nude Celebrity  Page 2
Pages: (1) (2) (3) (4) (5) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.