Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Chuks

  • Rank
  1. Thanks, but I don't know how to provide it. I am only working with the w3schools.com tutorial on PHP - Ajax and PHP. If you. You would notice the file "gethint.php" is as in the tutorial.
  2. I was trying to use Ajax to to communicate with the server while a user types characters in the input field. After creating the HTML code, and the PHP file, on testing it I got the error message: "Warning: stristr(): empty needle in C:\wamp\www\php\revision\ajax\gethint.phponline 50". I don't understand or know how to get around the error. Please help ( ! ) Warning: stristr(): Empty needle in C:\wamp\www\php\revision\ajax\gethint.php on line 50 Call Stack # Time Memory Function Location 1
  3. Please, I am creating a user registration /login form to enable users to register and login. After registering with the username and password the user is redirected to the login form, but on logging in submitting the form it returns the login form with the password highlighted in red, although the password would be correct. How do I find out the problem with my code here: <?php // include config file require_once 'config.php'; // Define variables and initialize with empty values $username = $password = ""; $username_err = $password_err = ""; // Processing form data
  4. Please, I desiged a contact form with validation, but on running the form the PHP validation codes occupy the input fields,and as well this Input:; echo $name; echo" "; echo $email; echo" "; echo $website; echo" "; echo $message; echo" "; echo $gender; ?> s appeared at the bottom . The following are the HTML and PHP codes: <!DOCTYPE html> <html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <?php // Define variables and set to empty values $nameErr = $emailErr = $genderErr =
  5. Please I am created a bootstrap contact form for my website, and now in the process of validating it before adding the PHP scripts,but don't figure out how to do it. Here is the form:<div class="container"> <div class="col-sm-12"> <div class="row"> <form id="contact-form" method="post" action="welcome2.php" role="form"> <div class="form-group has-error has-feedback"> <label for="name">Name</label> <input t
  6. Here is the contact.php file: <?php $servername = "localhost"; $username = "root" $password = ""; // Create connection $conn = new mysqli($servername, $username, $password); // Check connection if($conn ->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; ?> Thanks
  7. Please I have not been able to connect to MySQL. After opening a connect and checking the connection, I received the message: " 404 Not Found. The requested URL /contact.php was not found on this server. How do I go about this, I need help please. Thanks.
  • Create New...