• 31-07-2009, 23:40:09
    #1
    Üyeliği durduruldu
    merhaba arkadaslar güzel sözler scripti toparlamakdayım birtane simdi söz yazan kullanıcılar buyuk yazarlarsa sözleri mysql a da buyuk gidiyor sözler msql den cekilen yazilarda otomatıkmen buyuk oluyor ve tama bozuluyor ben söz yazarken caps lock acık dahi olsa yazılan yazılar form a kücük yazilmasini isiyorum bir zamanlar görmüştüm biryerlerde simdi lazim oldu acaba bunun hakkında bi bilgisi olan varmı
  • 31-07-2009, 23:43:25
    #2
    yazıyı anlık olarak küçültmek istiyorsanız bu javascript ile ilgili.
    veritabanına gönderirken küçültmek istiyorsanız eğer
      <?php
    $str = "Mary Had A Little Lamb and She LOVED It So";
    $str = strtolower($str);
    echo $str; // Prints mary had a little lamb and she loved it so
    ?>
    PHP: strtolower - Manual
  • 31-07-2009, 23:53:02
    #3
    Üyeliği durduruldu
    uysal_rockci adlı üyeden alıntı: mesajı görüntüle
    yazıyı anlık olarak küçültmek istiyorsanız bu javascript ile ilgili.
    veritabanına gönderirken küçültmek istiyorsanız eğer
      <?php
    $str = "Mary Had A Little Lamb and She LOVED It So";
    $str = strtolower($str);
    echo $str; // Prints mary had a little lamb and she loved it so
    ?>
    PHP: strtolower - Manual

    kardesim bunun neresine yerlestirmem gerekiyor bunu yardimci olabilirmisin


    <?php
    include_once("config.inc.php");
    include_once("db_connect.php");
    // get vars
    $submitme  = $_REQUEST['submitme'];
    $ptitle    = "Submit A Joke";
    $meta_keys = "submit, joke, search, jokes, funny, laugher, joke, gag, laughing";
    $meta_desc = "Submit A Joke";
    $selected  = "SUBMIT";
    include("header.php");
    $showform = TRUE;
    if($submitme) {
     
     // get vars
     $youremail = $_REQUEST['youremail'];
     $category  = $_REQUEST['category'];
     $joke      = $_REQUEST['joke'];
     $errorstring = "";
     $youremail = strtolower(formatField($youremail));
     if(strlen($youremail) == 0) $errorstring .="You must specify your email.<br>";
     if(strlen($category) == 0) $errorstring .="You must choose a category.<br>";
     if(strlen($joke) == 0) $errorstring .="You have not entered a joke.<br>";
     if(strlen($youremail) < 9 || strlen($youremail) > 64) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     else
     {
      $emailtail = strstr($youremail, '@');
      if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     }
     if(strlen($errorstring) == 0){
      // add to pending
      $ip = GetHostByName($REMOTE_ADDR); 
      $insert = mysql_query("INSERT INTO pendingjokes (category, joke, email, ip, dateadded) VALUES ('".formatField($category)."', '".formatField($joke)."', '".formatField($youremail)."', '".$ip."', NOW())");
      if($insert) $showform = FALSE;
     }
    }
    
    ?>
     <table width="100%" cellspacing="5" cellpadding="0">
       <tr>
         <td valign="top">
        <b>güzel sözler paylaşf</b><br><br>
        
        <?php
        if($showform == TRUE) {
        ?>
          Use the following form to submit a new joke to <?php echo $site_name; ?>. Please use the search feature first to make sure the joke does not exist alreay.<br><br>
         <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
         <tr><form method="post" action="submit-joke.php"><input type="hidden" name="submitme" value="yes"><td style="padding:0px;" align="center"><br>
        <?php if(strlen($errorstring) > 0) echo "<table cellpadding=\"8\" cellspacing=\"0\" border=\"0\" align=\"center\" bgcolor=\"#cccccc\"><tr><td><font class=\"error\"><b>Eksik yerleri tamamlayın:</b><br><br>$errorstring</td></tr></table><br><br>";?>
        <table cellpadding="5" cellspacing="0" border="0" align="left">
        <tr><td><b>mail adresiniz:</b></td><td><input type="text" name="youremail" class="form" style="width:250px;" value="<?php echo stripslashes($youremail); ?>"></td></tr>
          <tr><td><b>Kategori Secin:</b></td><td><select name="category" class="form" style="width:250px;">
          <?php
            echo "<option value=''>< choose ></option>";
            $cats = mysql_query("SELECT * FROM categories ORDER BY category");
         while($row = mysql_fetch_array($cats)) {
           echo "<option value='".$row[category]."'";
           if($row[category] == $category) echo " SELECTED";
           echo ">".$row[category]."</option>";
         }
          ?>
          </select></td></tr>
          <tr><td valign="top"><b>SÖZ:</b></td><td><textarea name="joke" class="form" style="width:250px;" rows="10"><?php echo stripslashes($joke); ?></textarea></td></tr>
          <tr><td></td><td><input type="submit" value="gönder" class="form">&nbsp;&nbsp;<input type="reset" value="yenile" class="form"></td></tr>
        </table><br>
         </td></form></tr>
       </table>
        <?php
        }
        else echo "Thank You!<br><br>Your joke has been sent for approval and should appear on the site in 24 hours. Thanks again for your contribution to ".$site_name.".<br><br><br><a href='submit-joke.php'>submit another joke</a><br><a href='index.php'>home</a>";
        ?>
        
      </td>
       </tr>
     </table>
     
    <?php
    include("footer.php");
    ?>
  • 01-08-2009, 00:03:14
    #4
    Eposta Aktivasyonu Gerekmekte
    formatField($joke)

    $joke değişkeninde sanırım textaredan çekilen veri.
    Aşağıdaki şekilde olur herhalde.
    <?php
    include_once("config.inc.php");
    include_once("db_connect.php");
    // get vars
    $submitme  = $_REQUEST['submitme'];
    $ptitle    = "Submit A Joke";
    $meta_keys = "submit, joke, search, jokes, funny, laugher, joke, gag, laughing";
    $meta_desc = "Submit A Joke";
    $selected  = "SUBMIT";
    include("header.php");
    $showform = TRUE;
    if($submitme) {
     
     // get vars
     $youremail = $_REQUEST['youremail'];
     $category  = $_REQUEST['category'];
     $joke      = $_REQUEST['joke'];
     $errorstring = "";
     $youremail = strtolower(formatField($youremail));
     if(strlen($youremail) == 0) $errorstring .="You must specify your email.<br>";
     if(strlen($category) == 0) $errorstring .="You must choose a category.<br>";
     if(strlen($joke) == 0) $errorstring .="You have not entered a joke.<br>";
     if(strlen($youremail) < 9 || strlen($youremail) > 64) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     else
     {
      $emailtail = strstr($youremail, '@');
      if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     }
     if(strlen($errorstring) == 0){
      // add to pending
      $ip = GetHostByName($REMOTE_ADDR); 
      $insert = mysql_query("INSERT INTO pendingjokes (category, joke, email, ip, dateadded) VALUES ('".formatField($category)."', '".strtolower(formatField($joke))."', '".formatField($youremail)."', '".$ip."', NOW())");
      if($insert) $showform = FALSE;
     }
    }
    
    ?>
     <table width="100%" cellspacing="5" cellpadding="0">
       <tr>
         <td valign="top">
        <b>güzel sözler paylaşf</b><br><br>
        
        <?php
        if($showform == TRUE) {
        ?>
          Use the following form to submit a new joke to <?php echo $site_name; ?>. Please use the search feature first to make sure the joke does not exist alreay.<br><br>
         <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
         <tr><form method="post" action="submit-joke.php"><input type="hidden" name="submitme" value="yes"><td style="padding:0px;" align="center"><br>
        <?php if(strlen($errorstring) > 0) echo "<table cellpadding=\"8\" cellspacing=\"0\" border=\"0\" align=\"center\" bgcolor=\"#cccccc\"><tr><td><font class=\"error\"><b>Eksik yerleri tamamlayın:</b><br><br>$errorstring</td></tr></table><br><br>";?>
        <table cellpadding="5" cellspacing="0" border="0" align="left">
        <tr><td><b>mail adresiniz:</b></td><td><input type="text" name="youremail" class="form" style="width:250px;" value="<?php echo stripslashes($youremail); ?>"></td></tr>
          <tr><td><b>Kategori Secin:</b></td><td><select name="category" class="form" style="width:250px;">
          <?php
            echo "<option value=''>< choose ></option>";
            $cats = mysql_query("SELECT * FROM categories ORDER BY category");
         while($row = mysql_fetch_array($cats)) {
           echo "<option value='".$row[category]."'";
           if($row[category] == $category) echo " SELECTED";
           echo ">".$row[category]."</option>";
         }
          ?>
          </select></td></tr>
          <tr><td valign="top"><b>SÖZ:</b></td><td><textarea name="joke" class="form" style="width:250px;" rows="10"><?php echo stripslashes($joke); ?></textarea></td></tr>
          <tr><td></td><td><input type="submit" value="gönder" class="form">&nbsp;&nbsp;<input type="reset" value="yenile" class="form"></td></tr>
        </table><br>
         </td></form></tr>
       </table>
        <?php
        }
        else echo "Thank You!<br><br>Your joke has been sent for approval and should appear on the site in 24 hours. Thanks again for your contribution to ".$site_name.".<br><br><br><a href='submit-joke.php'>submit another joke</a><br><a href='index.php'>home</a>";
        ?>
        
      </td>
       </tr>
     </table>
     
    <?php
    include("footer.php");
    ?>
  • 01-08-2009, 00:05:15
    #5
    Üyeliği durduruldu
    ustad bu olduda su sekilde cıkdı


    alİalaİaİaİaİİa...

    ben AİAİAİAİAİAİ diye eklemistim
  • 01-08-2009, 00:10:21
    #6
    Eposta Aktivasyonu Gerekmekte
    Böyle deneyin

    <?php
    include_once("config.inc.php");
    include_once("db_connect.php");
    // get vars
    $submitme  = $_REQUEST['submitme'];
    $ptitle    = "Submit A Joke";
    $meta_keys = "submit, joke, search, jokes, funny, laugher, joke, gag, laughing";
    $meta_desc = "Submit A Joke";
    $selected  = "SUBMIT";
    include("header.php");
    $showform = TRUE;
    if($submitme) {
     
     // get vars
     $youremail = $_REQUEST['youremail'];
     $category  = $_REQUEST['category'];
     $joke      = $_REQUEST['joke'];
     $errorstring = "";
     $youremail = strtolower(formatField($youremail));
     if(strlen($youremail) == 0) $errorstring .="You must specify your email.<br>";
     if(strlen($category) == 0) $errorstring .="You must choose a category.<br>";
     if(strlen($joke) == 0) $errorstring .="You have not entered a joke.<br>";
     if(strlen($youremail) < 9 || strlen($youremail) > 64) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     else
     {
      $emailtail = strstr($youremail, '@');
      if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     }
     if(strlen($errorstring) == 0){
      // add to pending
      $ip = GetHostByName($REMOTE_ADDR);
      $joke = str_replace("İ","i",$joke);
      $joke = strtolower($joke);
      $insert = mysql_query("INSERT INTO pendingjokes (category, joke, email, ip, dateadded) VALUES ('".formatField($category)."', '".formatField($joke)."', '".formatField($youremail)."', '".$ip."', NOW())");
      if($insert) $showform = FALSE;
     }
    }
    
    ?>
     <table width="100%" cellspacing="5" cellpadding="0">
       <tr>
         <td valign="top">
        <b>güzel sözler paylaşf</b><br><br>
        
        <?php
        if($showform == TRUE) {
        ?>
          Use the following form to submit a new joke to <?php echo $site_name; ?>. Please use the search feature first to make sure the joke does not exist alreay.<br><br>
         <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
         <tr><form method="post" action="submit-joke.php"><input type="hidden" name="submitme" value="yes"><td style="padding:0px;" align="center"><br>
        <?php if(strlen($errorstring) > 0) echo "<table cellpadding=\"8\" cellspacing=\"0\" border=\"0\" align=\"center\" bgcolor=\"#cccccc\"><tr><td><font class=\"error\"><b>Eksik yerleri tamamlayın:</b><br><br>$errorstring</td></tr></table><br><br>";?>
        <table cellpadding="5" cellspacing="0" border="0" align="left">
        <tr><td><b>mail adresiniz:</b></td><td><input type="text" name="youremail" class="form" style="width:250px;" value="<?php echo stripslashes($youremail); ?>"></td></tr>
          <tr><td><b>Kategori Secin:</b></td><td><select name="category" class="form" style="width:250px;">
          <?php
            echo "<option value=''>< choose ></option>";
            $cats = mysql_query("SELECT * FROM categories ORDER BY category");
         while($row = mysql_fetch_array($cats)) {
           echo "<option value='".$row[category]."'";
           if($row[category] == $category) echo " SELECTED";
           echo ">".$row[category]."</option>";
         }
          ?>
          </select></td></tr>
          <tr><td valign="top"><b>SÖZ:</b></td><td><textarea name="joke" class="form" style="width:250px;" rows="10"><?php echo stripslashes($joke); ?></textarea></td></tr>
          <tr><td></td><td><input type="submit" value="gönder" class="form">&nbsp;&nbsp;<input type="reset" value="yenile" class="form"></td></tr>
        </table><br>
         </td></form></tr>
       </table>
        <?php
        }
        else echo "Thank You!<br><br>Your joke has been sent for approval and should appear on the site in 24 hours. Thanks again for your contribution to ".$site_name.".<br><br><br><a href='submit-joke.php'>submit another joke</a><br><a href='index.php'>home</a>";
        ?>
        
      </td>
       </tr>
     </table>
     
    <?php
    include("footer.php");
    ?>
  • 01-08-2009, 00:14:55
    #7
    Üyeliği durduruldu
    NiZZo_ adlı üyeden alıntı: mesajı görüntüle
    Böyle deneyin

    <?php
    include_once("config.inc.php");
    include_once("db_connect.php");
    // get vars
    $submitme  = $_REQUEST['submitme'];
    $ptitle    = "Submit A Joke";
    $meta_keys = "submit, joke, search, jokes, funny, laugher, joke, gag, laughing";
    $meta_desc = "Submit A Joke";
    $selected  = "SUBMIT";
    include("header.php");
    $showform = TRUE;
    if($submitme) {
     
     // get vars
     $youremail = $_REQUEST['youremail'];
     $category  = $_REQUEST['category'];
     $joke      = $_REQUEST['joke'];
     $errorstring = "";
     $youremail = strtolower(formatField($youremail));
     if(strlen($youremail) == 0) $errorstring .="You must specify your email.<br>";
     if(strlen($category) == 0) $errorstring .="You must choose a category.<br>";
     if(strlen($joke) == 0) $errorstring .="You have not entered a joke.<br>";
     if(strlen($youremail) < 9 || strlen($youremail) > 64) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     else
     {
      $emailtail = strstr($youremail, '@');
      if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     }
     if(strlen($errorstring) == 0){
      // add to pending
      $ip = GetHostByName($REMOTE_ADDR);
      $joke = str_replace("İ","i",$joke);
      $joke = strtolower($joke);
      $insert = mysql_query("INSERT INTO pendingjokes (category, joke, email, ip, dateadded) VALUES ('".formatField($category)."', '".formatField($joke)."', '".formatField($youremail)."', '".$ip."', NOW())");
      if($insert) $showform = FALSE;
     }
    }
     
    ?>
     <table width="100%" cellspacing="5" cellpadding="0">
       <tr>
         <td valign="top">
        <b>güzel sözler paylaşf</b><br><br>
     
        <?php
        if($showform == TRUE) {
        ?>
          Use the following form to submit a new joke to <?php echo $site_name; ?>. Please use the search feature first to make sure the joke does not exist alreay.<br><br>
         <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
         <tr><form method="post" action="submit-joke.php"><input type="hidden" name="submitme" value="yes"><td style="padding:0px;" align="center"><br>
        <?php if(strlen($errorstring) > 0) echo "<table cellpadding=\"8\" cellspacing=\"0\" border=\"0\" align=\"center\" bgcolor=\"#cccccc\"><tr><td><font class=\"error\"><b>Eksik yerleri tamamlayın:</b><br><br>$errorstring</td></tr></table><br><br>";?>
        <table cellpadding="5" cellspacing="0" border="0" align="left">
        <tr><td><b>mail adresiniz:</b></td><td><input type="text" name="youremail" class="form" style="width:250px;" value="<?php echo stripslashes($youremail); ?>"></td></tr>
          <tr><td><b>Kategori Secin:</b></td><td><select name="category" class="form" style="width:250px;">
          <?php
            echo "<option value=''>< choose ></option>";
            $cats = mysql_query("SELECT * FROM categories ORDER BY category");
         while($row = mysql_fetch_array($cats)) {
           echo "<option value='".$row[category]."'";
           if($row[category] == $category) echo " SELECTED";
           echo ">".$row[category]."</option>";
         }
          ?>
          </select></td></tr>
          <tr><td valign="top"><b>SÖZ:</b></td><td><textarea name="joke" class="form" style="width:250px;" rows="10"><?php echo stripslashes($joke); ?></textarea></td></tr>
          <tr><td></td><td><input type="submit" value="gönder" class="form">&nbsp;&nbsp;<input type="reset" value="yenile" class="form"></td></tr>
        </table><br>
         </td></form></tr>
       </table>
        <?php
        }
        else echo "Thank You!<br><br>Your joke has been sent for approval and should appear on the site in 24 hours. Thanks again for your contribution to ".$site_name.".<br><br><br><a href='submit-joke.php'>submit another joke</a><br><a href='index.php'>home</a>";
        ?>
     
      </td>
       </tr>
     </table>
     
    <?php
    include("footer.php");
    ?>
    KARDEŞİM ÇOK SAOL YARDİMİN İCİN HEPİNİZ SAOLUN AYRIM YAPMADAN SİZİN GİBİ USTALARDAN DERSLER ALMAMIZ GEREK.

    Bunun sadece bas harflerini büyük yapma imkanımız varmi peki böyle bir foksiyon varmı?
  • 01-08-2009, 00:22:11
    #8
    Eposta Aktivasyonu Gerekmekte
    Oda bu şekilde tamamdır.

    <?php
    include_once("config.inc.php");
    include_once("db_connect.php");
    // get vars
    $submitme  = $_REQUEST['submitme'];
    $ptitle    = "Submit A Joke";
    $meta_keys = "submit, joke, search, jokes, funny, laugher, joke, gag, laughing";
    $meta_desc = "Submit A Joke";
    $selected  = "SUBMIT";
    include("header.php");
    $showform = TRUE;
    if($submitme) {
     
     // get vars
     $youremail = $_REQUEST['youremail'];
     $category  = $_REQUEST['category'];
     $joke      = $_REQUEST['joke'];
     $errorstring = "";
     $youremail = strtolower(formatField($youremail));
     if(strlen($youremail) == 0) $errorstring .="You must specify your email.<br>";
     if(strlen($category) == 0) $errorstring .="You must choose a category.<br>";
     if(strlen($joke) == 0) $errorstring .="You have not entered a joke.<br>";
     if(strlen($youremail) < 9 || strlen($youremail) > 64) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     else
     {
      $emailtail = strstr($youremail, '@');
      if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "Gecerli bir email adresi yazmalısınız.<br>";
     }
     if(strlen($errorstring) == 0){
      // add to pending
      $ip = GetHostByName($REMOTE_ADDR);
      $joke = str_replace("İ","i",$joke);
      $joke = strtolower($joke);
      $joke = ucfirst($joke);
      $insert = mysql_query("INSERT INTO pendingjokes (category, joke, email, ip, dateadded) VALUES ('".formatField($category)."', '".formatField($joke)."', '".formatField($youremail)."', '".$ip."', NOW())");
      if($insert) $showform = FALSE;
     }
    }
    
    ?>
     <table width="100%" cellspacing="5" cellpadding="0">
       <tr>
         <td valign="top">
        <b>güzel sözler paylaşf</b><br><br>
        
        <?php
        if($showform == TRUE) {
        ?>
          Use the following form to submit a new joke to <?php echo $site_name; ?>. Please use the search feature first to make sure the joke does not exist alreay.<br><br>
         <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
         <tr><form method="post" action="submit-joke.php"><input type="hidden" name="submitme" value="yes"><td style="padding:0px;" align="center"><br>
        <?php if(strlen($errorstring) > 0) echo "<table cellpadding=\"8\" cellspacing=\"0\" border=\"0\" align=\"center\" bgcolor=\"#cccccc\"><tr><td><font class=\"error\"><b>Eksik yerleri tamamlayın:</b><br><br>$errorstring</td></tr></table><br><br>";?>
        <table cellpadding="5" cellspacing="0" border="0" align="left">
        <tr><td><b>mail adresiniz:</b></td><td><input type="text" name="youremail" class="form" style="width:250px;" value="<?php echo stripslashes($youremail); ?>"></td></tr>
          <tr><td><b>Kategori Secin:</b></td><td><select name="category" class="form" style="width:250px;">
          <?php
            echo "<option value=''>< choose ></option>";
            $cats = mysql_query("SELECT * FROM categories ORDER BY category");
         while($row = mysql_fetch_array($cats)) {
           echo "<option value='".$row[category]."'";
           if($row[category] == $category) echo " SELECTED";
           echo ">".$row[category]."</option>";
         }
          ?>
          </select></td></tr>
          <tr><td valign="top"><b>SÖZ:</b></td><td><textarea name="joke" class="form" style="width:250px;" rows="10"><?php echo stripslashes($joke); ?></textarea></td></tr>
          <tr><td></td><td><input type="submit" value="gönder" class="form">&nbsp;&nbsp;<input type="reset" value="yenile" class="form"></td></tr>
        </table><br>
         </td></form></tr>
       </table>
        <?php
        }
        else echo "Thank You!<br><br>Your joke has been sent for approval and should appear on the site in 24 hours. Thanks again for your contribution to ".$site_name.".<br><br><br><a href='submit-joke.php'>submit another joke</a><br><a href='index.php'>home</a>";
        ?>
        
      </td>
       </tr>
     </table>
     
    <?php
    include("footer.php");
    ?>
  • 01-08-2009, 00:49:18
    #9
    Üyeliği durduruldu
    saol güzel kardeşim benim ellerin ve bilgin dert görmesin