honeyboy_20
Members-
Posts
24 -
Joined
-
Last visited
Never
Everything posted by honeyboy_20
-
problem with localhost
honeyboy_20 replied to honeyboy_20's topic in PHP Installation and Configuration
[code]Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole.[/code] and wat is the name of the file to change password and username? -
hello i create script (databse) when i make submit this message appear Forbidden You don't have permission to access /ahmed_LoginSystem/< on this server. -------------------------------------------------------------------------------- Apache/2.0.59 (Win32) PHP/5
-
hello gyus i want to make button using javascript and i f press on it the make any dir which i need for example: button =>if press on it they make any thing like this like button of fourm <b> any text</b> or <tt> </tt>
-
[move]...................؟[/move] ............................................................؟
-
plz help me
-
thanks more but [quote] i am not able to make all condition of script in rigth sequences and how i can develope script by adding cookies[/quote] wat i do to work well /?
-
help me with appache freiend
honeyboy_20 replied to honeyboy_20's topic in PHP Installation and Configuration
no ..i put files in www folder but no result -
hello i am setup appache freiend when i run script it work well but when i move to another page from any like in first page give me (save open cancel) wat i do ?
-
hello guys, register code not work with me and contains some logical error , when i write password it appear as it not hidden and i am not able to make all condition of script in rigth sequences and how i can develope script by adding cookies here's database ================================== CREATE TABLE `users` ( `id` INT( 10 ) NOT NULL AUTO_INCREMENT , `name` VARCHAR( 35 ) NOT NULL , `password` VARCHAR( 35 ) NOT NULL , `password1` VARCHAR( 35 ) NOT NULL , `email` VARCHAR( 35 ) NOT NULL , PRIMARY KEY ( `id` ) ) TYPE = MYISAM ; ================================== code ===== [code]<?php session_start(); ?> <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>register</title> </head> <body bgcolor=yellow> <table border=1 cellspacing=1 cellpadding=10 width=100 align=center> <td><h2 align="center">register</h2></td> </table> <?php //____________________________________________________________________________ $host="localhost"; //the name of localhost $user_root=""; //the name of user admin $password=""; //the name of password admin for database $database=""; //the name of database $table="users"; //the name of table //_____________________________________________________________________________ $user=$_POST['user']; $pass=$_POST['pass']; $pass1=$_POST['pass1']; $mail=$_POST['email']; //user must enter all fields to be register if($user &&$pass && $pass1 && $email) { //connect to database $connect=mysql_connect($host,$user_root,$password)or print"Unable to Connect<br>"; //select dtabase mysql_select_db($database,$connect); //ensure first that email is vaild then see in database if($email) { eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[_a-z0-9-]+(\.[_a-z0-9-]+)",$email); } /*we must make query in database to ensure that the name which user enter is not found so user can register with the new name and we can increase this proceess if we take his mail and make check also*/ $result = mysql_query("SELECT * FROM $table WHERE name LIKE '$user' AND email like '$email'"); //so we will make condition now for the process check if(mysql_num_rows($result)==0) { $result=mysql_query("INSERT INTO $table(name,password,password1,email)VALUES('$user',PASSWORD('$pass'),PASSWORD('$pass1'),'$email'"); } //if user input is true if($result) { $logged_in_user=$user; session_register("logged_in_user"); echo("Your details Has been added to database<br><br>"); echo("<a href='main.php'>click here to go to main page</a><br><br>"); echo("<a href='logout.php'>Click Here To Be logout<br><br></a>"); } elseif($user||$pass ||$pass1 ||$email){ echo"please fill all fields<br><br>"; }else{ echo"the username has been taken before...plz chosse another name<br><br>"; } } ?> <form method=post action="<?$_SERVER['PHP_SELF']?>"> <pre> username <input type=text name="user" maxlength=20 size=20> <br> <br> password <input type=text name="pass" maxlength=10 size=20> <br> <br> confirm password <input type=text name="pass2" maxlength=10 size=20> <br> <br> emails <input type=text name="email" maxlength=25 size=20> <br> <input type="submit" value="submit"> </form> </body> </html>[/code] =================================
-
display of date into html text...how ?
honeyboy_20 replied to honeyboy_20's topic in PHP Coding Help
thanks more :D -
hello how i can display the result of this code in <input type=text> <?php [code]$getdate=date("l \\t\h\e jS"); echo $getdate; ?>[/code]
-
thanks Crayon Violent i will do but i want easy way to that but i am not found in search eng
-
hello guys how i can make any thing like this in my site Navigate: PHP Tutorials > PHP > Security
-
open flash file automatic when i open the index.php page
honeyboy_20 replied to honeyboy_20's topic in PHP Coding Help
swf open when open my desire page suchs as adve....how ? -
i need to find wat wrong ?
-
[code]<?php // email address here $to= "email@example.com"; // The subject $subject = "Enter your subject here"; // The message $message = "<b>Enter your message here</b><br>"; $from="your_email_here@test.com"; mail($to, $subject, $message, "From: $from"); ?>[/code]
-
register.php ================================================= <?php /* ===========================================================================*/ /* */ /* login.php */ /* (c) 2006 Author :ahmed rabie elbohoty */ /* */ /* Description :registerfile :user fill the details */ /* to be memmber in our site */ /* ===========================================================================*/ [code]session_start(); ?> <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>register</title> </head> <body> <table border=1 cellspacing=1 cellpadding=10 width=50> <td><h2 align="center">register</h2></td> </table> <?php //____________________________________________________________________________ $host=""; //the name of localhost $user_db=""; //the name of user admin for database $password=""; //the name of password admin for database $database="userlist"; //the name of database $table="users"; //the name of table //_____________________________________________________________________________ //user must enter all fields to be register if($user &&$pass) { //connect to database $connect=mysql_connect($host,$user_db,$password)or print"Unable to Connect<br>"; //select dtabase mysql_select_db($database,$connect); /*we must make query in database to ensure that the name which user enter is not found so user can register with the new name and we can increase this proceess if we take his mail and make check also*/ $result = mysql_query("SELECT * FROM $table WHERE name LIKE '$user'"); //so we will make condition now for the process check if(mysql_num_rows($result)==0) { $result=mysql_query("INSERT INTO $table(name,password)VALUES('$user',PASSWORD('$pass')"); } //if user input is true if($result) { $logged_in_user=$user; session_register("logged_in_user"); echo("Your details Has been added to database<br><br>"); echo("<a href='main.php'>click here to go to main page</a><br><br>"); echo("<a href='logout.php'>Click Here To Be logout<br><br></a>"); } elseif($user||$pass){ echo"please fill all fields<br><br>"; }else{ echo"the username has been taken before...plz chosse another name<br><br>"; } } ?> <form method=post action="login.php"> Please enter Username <input type=text name="user" maxlength=20 size=20> <br> Please enter Password <input type=text name="pass" maxlength=10 size=20> <br> <input type=submit value="login"> </form> </body> </html>[/code] ========================================================== main.php ========================================================== [code]<?php /* ===========================================================================*/ /* */ /* login.php */ /* (c) 2006 Author :ahmed rabie elbohoty */ /* */ /* Description :login file which recieve username and password from user */ /* and if it correct redirct user to main page */ /* ===========================================================================*/ session_start(); ?> <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>Main</title> </head> <body> <h2>main</h2> <?php if(!$logged_in_user){ echo"there has been an error.<br><br>"; echo"<a href='login.php'>Click Here To Be login<br><br></a>"; }else{ echo"Welcome".$logged_in_use.".<br>"; } ?> </body> </html>[/code] ==================================================================== entrance.html ==================================================================== [code]<!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>entrance</title> </head> <body> <h2>Entrance</h2> <br> <br> <a href="login.php">Click here to log in </a> <br> <br> <a href="register.php">Click here to register as a new user</a> </body> </html>[/code]
-
hi guys, login script doesn't give me result but not give me error ans considt of 5 file login.php logout.php register.php main.php entrance.html ===================================================================== login.php ===================================================================== [code]<?php /* ===========================================================================*/ /* */ /* login.php */ /* (c) 2006 Author :ahmed rabie elbohoty */ /* */ /* Description :login file which recieve username and password from user */ /* and if it correct redirct user to main page */ /* ===========================================================================*/ session_start(); ?> <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>login</title> </head> <body> <h2><b>login</b></h2> <?php //____________________________________________________________________________ $host=""; //the name of localhost $user_db=""; //the name of user admin for database $password=""; //the name of password admin for database $database="userlist"; //the name of database $table="users"; //the name of table //_____________________________________________________________________________ $links="<a href='main.php'>click here to go to main page</a><br><br>"; // if uou delivre username and password from user if($user&&$pass) {//start if($logged_in_user==$_get['user']) { echo $user.",You are already logged in<br><br>"; echo $links; exit; } //connect to database $connect=mysql_connect($host,$user_db,$password)or print"Unable to Connect<br>"; //select dtabase mysql_select_db($database,$connect); //re $result = mysql_query("SELECT * FROM $table WHERE name LIKE '$user' AND password LIKE PASSWORD('$pass') "); //we can make name='$user' in stead of name LIKE '$user' //PASSWORD is afunction if(!$rsult){ echo"sorry..we can not enter your details"; exit; } if(mysql_num_rows($result)>0) { $logged_in_user=$_get['user']; session_register("logged_in_user"); echo"Welcome".$logged_in_user."<br><br>"; echo"$links"; exit; } elseif($user||$pass){ echo"plz fill in both fields<br><br>"; } else{ echo"invalid login..plz try again<br><br>"; } }//end ?> <form method=post action="login.php"> Your Username <input type=text name="user" maxlength=20 size=20> <br> Your Password <input type=text name="pass" maxlength=10 size=20> <br> <input type=submit value="login"> </form> </body> </html>[/code] =================================================== logout.php =================================================== [code] <?php session_start(); ?> <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>LogOut</title> </head> <body> <h2>LogOut</h2> <?php if($logged_in_user){ session_unregister("logged_in_user"); echo"<b>You Are Logged Out..Now</b> "; }else{ echo" <b>You haven't logged out yet</b>"; } ?> <br> <br> <a href="login.php">Click Here To Be login<br><br></a> <a href="register.php">Click Here To register As Anew User<br></a> </body> </html>[/code] =================================================
-
No virus realy. but script consist of 5 file so it will take large space on page
-
hello , guys login system doesn't give me result if user register or login or logout [attachment deleted by admin]
-
[code]i want to add some feature to this script such as(1) ensure that data is sent correct to desire mail friend (2) if user enter invaild mail display message to help me if there is worng (3)when i test script no message is sent to me <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> <style type="text/css"> <!-- .style1 { font-size: 15px; font-weight: bold; } .style3 { color: #000066; font-size: 12px; } --> </style> </head> <body> <?php $name=stripslashes($name); $to= stripslashes($to); $from= stripslashes($from); $subject = stripslashes($subject); $message= stripslashes($message); $mail=mail($to,$subject,$message,"From: $name <$email>"); ?> <div id="Layer1" style="position:absolute; left:120px; top:45px; width:391px; height:310px; z-index:1; background-color: #990000; layer-background-color: #990000; border: 1px none #000000;"> <div align="center" class="style1"> <p>my test form </p> <form name="form1" method="post" action=""> <p> <pre> <tt> to </tt><input type="text" name="to"></pre> </p> <p> <pre> from <input type="text" name="from"> </pre> </p> <p><pre> subject<input type="text" name="subject"> </pre> </p> <p> <center><b>your message <b></center> <br> <textarea name="message" cols="30" rows="5"></textarea> </em> </p> <input type=submit value=submit> <p> </p> </form> <p> </p> </div> </div> </body> </html>[/code]