Jump to content

Chikwado

Members
  • Posts

    287
  • Joined

  • Last visited

Posts posted by Chikwado

  1. Whatever I try to do in mysql it return error, For example connecting to database. 1 connection failed, 2 access denied, 3 you are not allow to connect to localhost or 127.0.0.1, what could be the problem?

  2. Some one help: how to configure mysql/phpmyadmin, example:

    C: /programe files/mysql/mysql/my.ini
    I am working with xampp version 5.6.3
  3. Ok, thank a lots. I want to buy domain name and they showed me 2 service the first one is $6 and second is $10 then I was confused on what they were doing, I prefer domain with hosting service.

  4. Some one check this: what is differences this two domain services.

    .com + Hosting
    .com Only
    ".com + hosting" became cheaper than the second one what is the differences, some one check it.
  5. Some one check this: the following php code is returning error that is:

    $target_path = "magazine/";
    $target_path = $target_path .basename($_FILES['uploadedfile']['name']);
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'])) {
    echo "The file" .basename($_FILES['uploadedfile'] ['name']) ."has been uploaded";
    }else{                                     echo "the file" .basename($_FILES['uploadedfile'] ['name']) ."was not uploaded";       }
    The file can be found here http://chiquado.site90.net/magazine some one help.
  6. Ok, You see while making upload file, we start with somethings like this:

    <form action="upload.php" method="post" name=" ">
    Is it possible to remove the following code as it is no more directing to another file?
    action="upload.php"
    ?
  7. I am sorry for all that mistake, It's just the way I am working hard over it without progress. This is the code:

    <!DOCTYPE html>
    <html>
    <body>
    <form method="POST"
    action="<?php echo $_SERVER
    ['PHP_SELF']; ?>">
    FirstName:<input type="text" name="fname">
    LastName:<input
    type="text" name="lname">
    Email:<input type="text" name="email">
    Phone:<input type="text"
    name="phone">
    Message:<input type=
    "textarea" id="txt"  name="message">
    Male:<input type="radio"
    name="radioa">
    Female:<input type=
    "radio" name="radiob">
    <input type="submit"
    value="Submit">
    </form>
    <?php
    $to = 'info@chiquado.site90.net';
    if($_SERVER["REQUEST_METHOD"] =="POST")
    {
    $anameone = $_POST['fname'];
    $bnametwo = $_POST['lname'];
    $cnamethree = $_POST['email'];
    $dnamefour = $_POST['phone'];
    $enamefive = $_POST['message'];
    $fnamesix = $_POST['radioa'];
    $gnameseven = $_POST['radiob'];
    if(mail($to, $subject, $message)) {
    echo 'mail sent';
    }else{
    echo 'mail not sent';
    }
    }
    </body>
    </html>
  8. The following are the php code:

    <!DOCTYPE html>
    <html>
    <body>
    <?php
    //Recipient
    recipient = "info@chiquado.site90.net";
    //Get user input
    $name = $_GET["fname"];
    $name = $_GET["lname"];
    mail($recipient, $fname, $lname);
    echo "mail sent";
    ?>
    </body>
    </html>
    Although my form has 4 input field with one radio button. I was testing 2 field. The above php has extension as:
    form_handler.php
    html form action has:
    form_handler.php
    Then if html code is needed I will show it. Thanks.
  9. Some one check this: while transfering my file using ftp, I get the following error.

    command: AUTH SSL.
    Response: 502 SSL/TLS authentication not allowed
    Status: insecure server, it does not support SSL/TLS.
    Command: chiquado
    Response: 550 SSL require
    Error: Could not connect to server
    Now, what could be the problem? I am testing it in local use xampp. I Input hostname as "localhost" and follow by username and password I created in filezilla server. Some one help.
  10. How to make multiple fileupload, I have 2 html file, The first one has 10 field the other has one field. Then, I am thinking which one to add my php script, I am planning to add loop in my script. Although in scripting language, it was said that crafting something repeatedly it would be better to use loop. In those 2 html file which one do I have to add my script, I am planning to test it with loop.

×
×
  • Create New...