Jump to content

dream25

Members
  • Posts

    77
  • Joined

  • Last visited

    Never

Everything posted by dream25

  1. hi.. how to code for a secured password...Please Help me..Thanks in Advance
  2. Hi.. in my coding only small files only loading.. if i load exe.. and big size files and etc.. are not loading.. y its not uploading.. please help me.. Thanks in Advance
  3. Hi.. i have one more doubt.. please clear it.. i wrote a code for search engine.. if i run that code.. its shows.. nothing.. the code has follows.. <html> <body> Search: <form method='post' action='search.php'> <input type='text' name='search' size='25' maxlength='25'> <input type='Submit' name=' Search ' value='Submit'> </form> </body> </html> <?php $host="localhost"; $username="root"; $password=""; $db_name="database1"; $tbl_name="table1"; if(isset($_POST['submit'])) { echo "Your Name Is " . $_POST['search'] ; mysql_connect("$localhost", "$username", "$password")or die("Cannot connect"); mysql_select_db("$db_name")or die("Cannot select database"); $search=$_POST["search"]; $result = mysql_query("SELECT * FROM '$tbl_name' WHERE name LIKE '%$search%'"); while($r=@mysql_fetch_array($result)) { //change the names to your columns $topic=$r["topic"]; $message=$r["message"]; $name=$r["name"]; $date=$r["date"]; $id=$r["id"]; //display the row echo "$id | $topic by $name at $date $message"; } if(!search){ echo "Please enter a search."; } else { echo "Sorry, there were no searches with the criteria of $search."; } } ?> Thanks In Advance
  4. Hi.. i have one more doubt.. please clear it.. i wrote a code for search engine.. if i run that code.. its shows.. nothing.. the code has follows.. <html> <body> Search: <form method='post' action='search.php'> <input type='text' name='search' size='25' maxlength='25'> <input type='Submit' name=' Search ' value='Submit'> </form> </body> </html> <?php $host="localhost"; $username="root"; $password=""; $db_name="database1"; $tbl_name="table1"; if(isset($_POST['submit'])) { echo "Your Name Is <br>" . $_POST['search'] ; mysql_connect("$localhost", "$username", "$password")or die("Cannot connect"); mysql_select_db("$db_name")or die("Cannot select database"); $search=$_POST["search"]; $result = mysql_query("SELECT * FROM '$tbl_name' WHERE name LIKE '%$search%'"); while($r=@mysql_fetch_array($result)) { //change the names to your columns $topic=$r["topic"]; $message=$r["message"]; $name=$r["name"]; $date=$r["date"]; $id=$r["id"]; //display the row echo "<b>$id</b> | <b>$topic</b> by <b>$name</b> at <b>$date</b><br><br>$message"; } if(!search){ echo "Please enter a search."; } else { echo "Sorry, there were no searches with the criteria of <b>$search</b>."; } } ?> Thanks In Advance
  5. Thank u very much.. its working now... bye
  6. Hi All... Im newbie to PHP.. actually i wrote a code for upload... when i run that code its shows... Warning: move_uploaded_file(../xampp/htdocs/general/test.php) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\xampp\htdocs\upload.php on line 9 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\xampp\tmp\php65.tmp' to '../xampp/htdocs/general/test.php' in C:\xampp\htdocs\upload.php on line 9File uploaded. Select File: that saving path has been rite... but i dont know y its shows this error.. Please Help Me.. Here i attached the coding... <?php if ($_POST[submitB] == "Upload File") { echo exec('whoami'); move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], "../xampp/htdocs/general/{$_FILES['uploadFile'] ['name']}"); echo "File uploaded."; }?> <html> <body> <form enctype="multipart/form-data" action="upload.php" method="post"> Select File: <input type="file" name="uploadFile"> <input name="SubmitB" type="submit" value="Upload File"> </form> </body> </html> Thanks In Advance..
  7. dream25

    Image

    Hi im new to JavaScript, actually i doing a image downloading site, here my doubt is, if the user move the cursor to the images, it will show in a enlarge size,, how it will work,, gimme the coding for its Uday Thanks in Advance
  8. Thanks for an idea... will u plz explain in a code.. im a new bie.. so i dont have a that much of knowledge to understand theoritically.. so i need in a practical manner.. plz..
  9. its a user defined login page.. first u go and register ur name and password.. after that u login what u reigster in the register page..
  10. Hi i send the admin file.. if u dont mind will u please check whether i did it rightly or not... http://www.ultiviz.com/uday/loginsys/main.php
  11. For example like this ... Dear Shree Uday, Thank you for signing up! Click or copy and paste this URL to your browser to activate your account: http://www.sxc.hu/index.phtml?f=act&l=shree_uday&n=abeefbe9be0d8ccfbd7a4205d8872bd0 If for some reason the above link doesn't work, paste the following details in the activation form at http://www.sxc.hu/index.phtml?f=act Login: shree_uday Activation code: abeefbe9be0d8ccfbd7a4205d8872bd0 Please note that your activation code is NOT your password. Thank you for using our service. Best regards, The SXC Crew http://www.sxc.hu
  12. Hi all, i need a help.. actually i created one register page, if user register his name and password and email... i send a mail link and activation code to that email for confirmation.. if that user click that link.. we going to say you are registeration has success..in the form.. here my doubt is how we send a link to that id and activation code.. plz help me...
  13. Better u send what error has displayed...
  14. Thanks... now i got an idea about the admin page...
  15. Thanks.. Gimme some general idea about the admin, or gimme some example for admin page :
  16. Hi All, Im new to PHP, I was already created the register page and login page, now im going to create admin page, and also i wanna to know the duties of admin.. i dont know what process is going to take in admin page, plz help me... Thanks in Advance.. Uday
  17. Hi all, i wanna to know about.. how to send a SMS and MMS by the way of PHP Coding.. Plz help me out.. and Thanks in Advance... Uday
  18. hello all, does anyone know of a good php search engine script that will search files on my server from there meta tag. or any anything else. thanks ???
  19. Hi.. logomaniac.. i need ur help.. im also trying to code for forums for my project,, if u dont mind will u plz send ur codings about ur forums.. i think it will help me.. will u plz.. Thanks in advance.. Uday
  20. Hi to All.. Im Uday, Im new to PHP, actually i plan to do a register page, i have a problem in Login page, if i once register its goes to login page, here in login im going to check the valid name and password, if i click the login button, its reset the page, plz help me to let out.. here the code follows.. Login.PHP <?php include 'config.php'; ob_start(); echo "<center><font size\"2\" face=\"Tahoma\"> Network-13 Login System </font></center><br>"; echo "Login..<br>"; echo "<form action=\"./login.php\" method=\"POST\">"; echo "Name: <br><input type=\"text\" name=\"username\"><br>"; echo "Your email: <br><input type=\"text\" name=\"email\"><br>"; echo "Pass: <br><input type=\"password\" name=\"password\"><br>"; echo "<input type=\"submit\" value=\"Login!\">"; echo "</form>"; echo "<br>Dont have an account? Register <a href=\"register.php\">here!</a>"; echo "<br>Forgot your password? Click <a href=\"reset.php\">here!</a>"; $connection = @mysql_connect($hostname, $user, $pass) or die(mysql_error()); $dbs = @mysql_select_db($database, $connection) or die(mysql_error()); $sql = "SELECT * FROM `users` WHERE username = '$_POST[username]' AND password = '$_POST[password]' AND email = '$_POST'"; $result = @mysql_query($sql,$connection) or die(mysql_error()); $num = @mysql_num_rows($result); echo $num; if ($num != 0) { $cookie_name = "auth"; $cookie_value = "fook"; $cookie_expire = "0"; $cookie_domain = $domain; setcookie($cookie_name, $cookie_value, $cookie_expire, "/", $cookie_domain, 0); header ("Location: http://" . $domain . $directory . "admin.php"); ob_end_flush(); exit; } ?> ***************************** Register.php <?php include 'config.php'; function is_alphachar($text) { for ($i = 0; $i < strlen($text); $i++) { if (!ereg("[A-Za-z0-9]", $text[$i])) { return 1; } } } $form .= "Register a new username. Be sure to enter a <b>genuine</b> email as it will be used to recover your account.<br>"; $form .= "<form action=\"./register.php\" method=\"POST\">"; $form .= "Username: <br><input type=\"text\" name=\"username\"><br>"; $form .= "Your email: <br><input type=\"text\" name=\"email\"><br>"; $form .= "Password: <br><input type=\"password\" name=\"password\"><br>"; $form .= "<input type=\"submit\" value=\"Create!\">"; $form .= "</form>"; if($_POST[username] == "") { echo $form; } elseif(strlen($_POST[password]) < 6) { echo $form; echo "<br> Error password must be 6 characters or more"; } else { $connection = mysql_connect($hostname, $user, $pass) or die(mysql_error()); $db = mysql_select_db($database, $connection) or die(mysql_error()); $sql = "SELECT username FROM users WHERE username = '$_POST[username]'"; $sql2 = "SELECT email FROM users WHERE email = '$_POST'"; $result = mysql_query($sql) or die ("Couldn't execute query."); $result2 = mysql_query($sql2) or die ("Couldn't execute query."); $num = mysql_num_rows($result); $num2 = mysql_num_rows($result2); if (is_alphachar($_POST[username]) == 1) { echo $form; echo "Invalid Username. Only numbers/letters and underscores are allowed.<br>"; die; } if ($num == 1) { echo "Error, username already exists!"; echo "<br><a href=\"register.php\">Back to Register Area</a>"; } elseif ($num2 == 1){ echo "Error, that email address has already been registered. Please select a different one."; echo "<br><a href=\"register.php\">Back to Register Area</a>"; } else { $query = "INSERT INTO users (username,password,email) VALUES ('$_POST[username]','$_POST[password]','$_POST')"; $resultB = mysql_query($query,$connection) or die ("Coundn't execute query."); echo "Congratulations $tmpname. Your account has been created and added to database"; echo "<br><a href=\"login.php\">Back to login area</a>"; } } ?>
  21. i already coded for user information and i checked.. the message hase sent or not,i done this perfectly,,but till i dont have idea about the sending reply mail to the registered users..
  22. ya u r rite.. but they r not give the details about the reply mail and sending links to the mails for confirmation.. they giving only how to send an email with secure validation..
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.