Hello Brader,
This error:
PHP Code:
"Notice: Undefined index: keyword in C:\xampp\htdocs\Tutorial\Own\SIS\search_form.php on line 106"
Refers to this line of code:
PHP Code:
$search = $_POST['keyword'];
Sa first page load wala pa ma set ang
$_POST['keyword'] kay wala pmn ma submit ang form. Bali you're trying to store non-existent data to
$search. Ang solution ana is simple, use
isset().
PHP Code:
if( isset($_POST['keyword'] ) {
$search = $_POST['keyword'];
}
bale i-check sah niya kung naa bay value ang variable before niya i-assign to
$search.
From PHP manual:
Also, side note lng brader. Sanitize your inputs. Placing variables directly into your SQL queries, is one web development's biggest no-noes since this opens you up to SQL injection and, in effect, other conventional hacks.
It's OK to use these now, since you are only testing and you are on a local machine. Pero please remember that once you put this out to the world, the box that you use to host your site will be open to one of the easiest hacking methods available.
Read
this article for some healthy practices.
Good luck.