Need help regarding web development

chirayu garg

Journeyman
I have to make a login page for some purpose.I am confused whether I should javascript for it or php . As i know none of the languages very well except some very basic syntax can someone plz help regarding how should i go about developing the webpage and give me the code or atleast the basic pattern if someone already have it.

Anyhelp will be appreciated. Thanks in advance!
 

manaskumar

Have fun till death!!
Implementing code for login in php would be more good.
First make simple php page with normal Username and password text box.
On submitting call another php page in which your authentication logic would be written.
 
OP
C

chirayu garg

Journeyman
@manaskumar plz tell in more detail like how to write code in WAMP or wherever you know,how to maintian the database.
 

manaskumar

Have fun till death!!
Start with basic page which contains a form
<form action="access.php">
<input type="textbox" name="username" />
<input type="textbox" name="password" />
</form>

the second page access.php would contain
<?php
if ($_GET["username"]=="kumar" && $_GET["password"]=="manas")
then echo "Logined!!"
else
echo "Failed"
?>


You can try this. Also you can pull data from database for comparison of password.
For more detailed tutorial try PHP Tutorial.
 

cute.bandar

Cyborg Agent
Google for "php login script" . You will get plenty of examples.
For learning php . the best solution that i found was to download lynda.com's video tutorials for learning php and mysql. you can find it on torrents.
 
Top Bottom