Page 2 of 7 FirstFirst 12345 ... LastLast
Results 13 to 24 of 77

Thread: PHP MySQL Class-8

  1. #13
    Join Date
    23 Oct 2006
    Location
    Lalamusa
    Age
    39
    Posts
    7,054
    Threads
    198
    Credits
    0
    Thanked
    9

    Default

    Great work shakeel bhai..

  2. #14
    programmersbank is offline Senior Member+
    Last Online
    24th February 2011 @ 05:18 PM
    Join Date
    16 Aug 2007
    Posts
    36
    Threads
    1
    Credits
    994
    Thanked
    0

    Default

    bohat shukaria shakeel bhai

    bohat deeply har aik cheez lo wazahat ki hai
    Forum link not allowed at all...ITD Team

  3. #15
    deemi is offline Senior Member+
    Last Online
    25th June 2014 @ 12:09 PM
    Join Date
    16 Sep 2008
    Location
    Gujranwala
    Age
    42
    Posts
    375
    Threads
    68
    Credits
    980
    Thanked
    49

    Thumbs up thanx

    aoa bro i am very thank ful to u tht u released php course u dont now how am i happy, so frend plz released also java script course tht use in web. plzzzzzzz bro.
    MAY ALLAH give happines u always

  4. #16
    deemi is offline Senior Member+
    Last Online
    25th June 2014 @ 12:09 PM
    Join Date
    16 Sep 2008
    Location
    Gujranwala
    Age
    42
    Posts
    375
    Threads
    68
    Credits
    980
    Thanked
    49

    Unhappy

    aoa kya haal hai shakeel bhai aap ka app ky thread sy madad to kafi hoo rahi hai mger mujhy aik problem hai or woh yeh k main jub bhi dreamweaver mian php ka code likh ker .PHP ky sath save kerta hoon ya .HTML k sath save kerta hoon woh mujhy php ka result nhi deta main nay aap ki classes say bhi code dykh ker likha mager mushkil asaan nhi hoo rahi so plzzzz shakeel bhai meri madad keryn main bohat paryshan hoon.

  5. #17
    Join Date
    14 Feb 2009
    Location
    Faisalabad
    Posts
    205
    Threads
    23
    Thanked
    2

    Default




  6. #18
    Join Date
    01 Apr 2009
    Location
    C://Windows/Desktop
    Posts
    160
    Threads
    22
    Thanked
    0

    Default

    excellent inforamtion hy basic functions ky bary main likan bahi agar app ny koi ebook banye hy inn lectures ki tu uss ka link kindly dain

  7. #19
    shazia1 is offline Member
    Last Online
    19th January 2010 @ 08:52 PM
    Join Date
    25 Mar 2009
    Age
    34
    Posts
    9
    Threads
    0
    Thanked
    0

    Default

    Struggle of shakeel is excellent.

  8. #20
    jawan880 is offline Junior Member
    Last Online
    11th June 2012 @ 11:55 AM
    Join Date
    29 Oct 2008
    Age
    43
    Posts
    12
    Threads
    1
    Credits
    239
    Thanked
    0

    Default

    yar kamal he kr diya hai. Thanks

  9. #21
    amerawan is offline Junior Member
    Last Online
    23rd October 2009 @ 05:25 PM
    Join Date
    02 Jul 2009
    Posts
    7
    Threads
    0
    Credits
    1,000
    Thanked
    0

    Default

    thx

  10. #22
    Join Date
    09 Jan 2008
    Location
    Karachi
    Gender
    Male
    Posts
    698
    Threads
    50
    Credits
    891
    Thanked
    0

    Default Comment form

    Shakeel bhai mene user se comments name or email address lene ke liye ye banaya hai ismein aik problem jub mein validate kerta hoon ke user na kitne words type kiye agar condition true hoti hai to ye sirf ture he show kerta hai or agar false to error show kerdeta hai.
    Ye form hai isse comment.php ke name se save karein.
    HTML Code:
    <html>
    <head><title>Comment Form</title></head>
    <style type="text/css">
    body {
    	border: 2% solid #dddddd;
    	margin: 4%;
    	padding: 4%;	
    }
    .button {
    	border:1px inset #dddddd;
    }
    </style>
    <body>
    <center><form method="post" action="commentform.php">
    <table border="1" cellpadding="2" cellspacing="0" width="75%" style="border-collapse:collapse;border-bottom:1px solid #dddddd;border-left:2px solid #ccc;border-right:2px solid #ccc;border-top:1px solid #dddddd;">
    <tr><td><b>Name:</b></td><td><input type="text" name="name"/></td></tr>
    <tr><td><b>Email:</b></td><td><input type="text" name="email"/></td></tr>
    <tr><td><b>Country:</b></td><td><select name="country"><option>Pakistan</option>
    <option>China</option><option>UK</option></select></td></tr>
    <tr><td><b>Commetns:</b></td><td><textarea name="comments"></textarea></td></tr>
    <tr><td>&nbsp;</td><td><input type="submit" value="Submit" class="button"/>&nbsp;<input type="reset" value="Reset" class="button"/></td></tr>
    </table>
    </form></center>
    </body>
    </html>
    Or php code ise commentform.php ke name se save karein.
    PHP Code:
    <html>
    <head><title>Comment Form</title></head>
    <body>
    <center>
    <?php
    error_reporting
    (E_ALL E_NOTICE);
    function 
    cleanstr($string){
        
    $cstr trim($string);
        
    $cstr addslashes($cstr);
        
    $cstr htmlspecialchars($cstr);
        return 
    $cstr;
    }
    function 
    stringlen($lenght){
        
    $len cleanstr($lenght);
        
    $len strlen($len);
        if(
    $len 10 || $len 40){
            echo 
    "Your comments must in between 10 and 40 words";
            return 
    false;
        }
        return 
    true;
    }
    function 
    emptyfields($empty){
        if(!
    is_array($empty)){
            echo 
    "The argument must be in array";
            return 
    false;
        }
        foreach(
    $empty as $keys => $values){
            
    $values cleanstr($values);
            if(empty(
    $values)){
                echo 
    "<br />" ucwords($keys) . "</br /> must not be empty";
                return 
    false;
            }
        }
        return 
    true;
    }
    if(!
    emptyfields($_POST)){
        exit();
    }
        
    $name cleanstr($_POST['name']);
        
    $email cleanstr($_POST['email']);
        
    $country $_POST['country'];
        
    $comments stringlen($_POST['comments']);

    echo 
    "<table border=\"1\" cellpadding=\"2\" cellspacing=\"0\" width=\"75%\" style=\"border-collapse:collapse;border-bottom:1px solid #dddddd;border-left:2px solid #ccc;border-right:2px solid #ccc;border-top:1px solid #dddddd;\">";
    echo 
    "<tr><td>".$name."</td></tr>";
    echo 
    "<tr><td>".$email."</td></tr>";
    echo 
    "<tr><td>".$country."</td></tr>";
    echo 
    "<tr><td>".$comments."</td></tr>";
    echo 
    "</table>";
    ?>
    </center>
    </body>
    </html>

  11. #23
    naqshbandios_limra's Avatar
    naqshbandios_limra is offline Senior Member+
    Last Online
    27th March 2023 @ 04:00 PM
    Join Date
    28 Aug 2008
    Age
    39
    Gender
    Male
    Posts
    4,267
    Threads
    499
    Credits
    1,323
    Thanked
    626

    Default

    Excellent
    Khanqah Daruslam

  12. #24
    Join Date
    02 Mar 2009
    Location
    In Ask An Expert
    Age
    35
    Posts
    7,257
    Threads
    122
    Credits
    945
    Thanked
    297

    Default

    Nice Thanks

Page 2 of 7 FirstFirst 12345 ... LastLast

Similar Threads

  1. PHP MySQL Class-7
    By shakeel in forum PHP MySQL
    Replies: 97
    Last Post: 18th August 2016, 01:02 PM
  2. PHP MySQL Class-12
    By shakeel in forum PHP MySQL
    Replies: 60
    Last Post: 10th August 2016, 11:48 AM
  3. PHP MySQL Class-18
    By shakeel in forum PHP MySQL
    Replies: 71
    Last Post: 9th April 2016, 04:07 PM
  4. PHP MySQL Class-20
    By shakeel in forum PHP MySQL
    Replies: 83
    Last Post: 28th August 2015, 05:25 PM
  5. MySql first class
    By aajizUsmani in forum Courses
    Replies: 4
    Last Post: 23rd March 2014, 02:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •