Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11

    Default Re: PHP help again :D


    sulbad na ni?

  2. #12

    Default Re: PHP help again :D

    Quote Originally Posted by kamahak View Post
    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.
    Salamat kaau bosing.. na sulbad ra intawun ako duha ka problema.. pagmu balik ko search wala na 2ng mga previous result and wala na pud ang error.. salamat kaau sa mga tips ug tabang..

    Godbless you brader!

  3. #13

    Default Re: PHP help again :D

    thank you sa tanan na solved na nku.
    @ondoy - salamat sa tips ug codes and the rest thank you. daghan pa ko further question pero sunod na.. ehehe!

    Godbless us all!

  4. #14

    Default Re: PHP help again :D

    No problem brader. Hopefully pd, nabasa toh nimo ang thread ug naa kay nakat-onan about basic web development practices.

    Good luck =)

  5. #15
    TO ALL;

    We are inviting you to attend on our forthcoming training for the following

    1. BACKTRACK 5 RECIPES
    2. AJAX
    3. JQUERY
    4. CISCO 1
    5. CISCO 2
    6. PHP WITH MYSQL
    7. SQL SERVER PROGRAMMING AND MANAGEMENT
    8. C#.NET 2010
    These are just some of the training CEDF-IT if offering. For more information for these training, please give us a call at 412 7695 or email at duetes.marketing@gmail.com. Thank you and have a great day ahead!

  6.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. Im learning PHP, Help me hw to run the PHP!
    By kyme in forum Programming
    Replies: 23
    Last Post: 08-21-2012, 02:57 AM
  2. Replies: 33
    Last Post: 10-17-2008, 04:09 PM
  3. Streaming/Playing videos in PHP..help.
    By ichiriki in forum Programming
    Replies: 3
    Last Post: 10-08-2008, 05:15 PM
  4. PHP help me
    By poymode in forum Programming
    Replies: 8
    Last Post: 07-28-2007, 02:57 PM
  5. PHP help
    By tjyrna in forum Networking & Internet
    Replies: 1
    Last Post: 07-06-2006, 11:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top