Jump to content

Techneut

Members
  • Posts

    25
  • Joined

  • Last visited

Posts posted by Techneut

  1. 1. Make sure you check for the existence of the input field with

    <?php   if (isset($_POST['var']) {       $var = $_POST['var'];                function addIntoArray($var) {       global $map;          if (!empty($var)) {           $map[] = $var;           echo $var." succesfully added to the array!";       }           return;       }   }?>
  2. The password is not hashing because $pass is an undefined variable;

     

    You can define

    $pass = $_POST['pass'];

     

    then password is

     

    $password = md5($pass);

    • Like 1
  3. I have noticed an error in your move_uploaded_file function. It is coded as

     

    move_uploaded_file (a, b );

     

    where

    a - is the temporary location of the uploaded file on the server ($_FILES['uploadedfile']['tmp_name']) - Which you didn't specify

    and

    b - is the target location of your uploaded file.

  4. There are two ways to do this.

     

    1.You just right click on the page and select delete or remove.

     

    2.Rename the page you want to display as default.php and send it to your hosting folder, it will automatically replace the old default.php

  5. Hello everyone, I just finished learning PHP and want to start a new project. I have seen many PHP programmers talk about frameworks and libraries, etc... As for me I want to know whether coding everything yourself is better than using frameworks or vice versa. Please help me.

×
×
  • Create New...