Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/01/2012, 10:51
Avatar de gabrielmatianich
gabrielmatianich
 
Fecha de Ingreso: diciembre-2011
Ubicación: San Cristobal
Mensajes: 21
Antigüedad: 12 años, 10 meses
Puntos: 0
Respuesta: Facebook Script Form Error

Codigo Fuente de index.php
Código PHP:
<? 
include ("config.php");
if (
$_POST["like"]) {
    
$like=$_POST["like"];
    
mysql_query("INSERT INTO fblike VALUES(NULL, '$like', '1')");
    
$x=mysql_query("SELECT * FROM fblike ORDER BY id DESC LIMIT 1");
    while (
$y=mysql_fetch_assoc($x)){
$id=$y['id'];
}
    
?>
    <script type="text/javascript"> window.location.href="<?=$url_like?><?=$id?><?=$url_end?>";</script>
    <?
}
?>
    <!-- LikeItNow Script by Alex Pensado -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
          <!-- HEADER -->
                <html lang="es">
                <head> 
       <!-- Variables HEAD -->
       <meta property="og:title" content="DameLike.com"/>
       <title>DameLike.com | Crea tus propias Frases en Facebook</title>        
       <!-- //Variables HEAD// -->    
                <link rel="shortcut icon" href="/images/favicon.ico">                         
                <link rel="apple-touch-icon" href="/images/apple-touch-icon.png">
        <link rel="stylesheet" type="text/css" media="all" href="/styles.css">
                <link rel="alternate" type="application/rss+xml" title="Likees Feed" href="/rss.php" />        
        <script type="text/javascript" src="/js/func.js"></script>
        <script type="text/javascript" src="/js/facebook.js"></script>
                <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
          <!-- SEO & META TAGS -->
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                <meta content='http://i53.tinypic.com/2psnaxf.png' property='og:image'/>
                <meta content='index, follow' name='robots'></meta>  
                <meta content='es' name='language'></meta>
                <meta property="og:type" content="web"/>
                <meta property="og:site_name" content="<?=$fb_name?>"/>
                <meta property="fb:admins" content="<?=$fb_admin?>"/>
                <meta name="Keywords" content="<?=$keywords?>" />  
          <!-- //SEO & META TAGS// -->
          <!-- //ENDS HEADER// -->
</head>

          <!-- BODY -->
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

          <!-- JAVASCRIPT CODES -->
          <div id="fb-root"></div>
                <script type="text/javascript" src="/js/facebook.js"></script>
                <script type="text/javascript" src="/js/analytics.js"></script>
            <script type="text/javascript" src="/js/crear.js"></script>
            <script type="text/javascript" src="/js/func.js"></script>
                <script type="text/javascript" src="http://widgets.tcimg.com/v1/sidebar.js"></script>
                <script type="text/javascript">tc_sidebar("c7vhpcpu", "en", "left-middle", "ffffff", "000000");</script>
                <script type="text/javascript" src="http://widgets.amung.us/tab.js"></script>
                <script type="text/javascript">WAU_tab('49alnrpng345', 'right-middle')</script>
                <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
          <!-- //JAVASCRIPT// -->
          <!-- HEADER & TOTAL PAGES -->
          <div id="header">
        <a href="<?=$url_site?>" id="branding"><span><?=$site_name?></span></a>
                <p id="total_pages" class="rounded"><span id="count"> <? 
                $x
=mysql_query("SELECT * FROM fblike ORDER BY id DESC LIMIT 0,1");
                
$nr=0;
                while (
$y=mysql_fetch_assoc($x)) {
                
$id=$y['id'];
            
$like=$y['like'];
                
?>
                <?=$id?><? echo substr(0,44);?>   
                <? ?>    
                </span> Frases Creadas</p>
                
           </div>
           
          <br>
          <!-- //HEADER & TOTAL PAGES// -->
          <!-- AD & TRIGGER TABLE --><center>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1570674365886019";
/* DameLike Top 728x90 */
google_ad_slot = "7858083492";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
          <!-- //AD & TRIGGER TABLE// --></center>

        <div id="page_details" class="rounded">
            <img src="images/megustafacebook_07.png"/>
            
            <form method="POST" action="index.php">
   <p>
     <input name="like" type="text" class="comments" maxlength="140" onKeyPress="return noAcepto(event)" form autocomplete="off" value="Escribe aqui tu frase..." onBlur="if (this.value == '') this.value = 'Escribe aqui tu frase...'" onFocus="if (this.value == 'Escribe aqui tu frase...') this.value = ''" >
     
     <script type='text/javascript' src='js/simbolos.js'></script>
     <a href="#" style="outline: none;" onClick="showhide('simbolos');"><img src="images/fb-simbols.png" alt="Simbolos para tus Frases" width="185" height="28" border="0"></a>
   </p>
   <div id="simbolos" style="display:none;" class="simbolos"><font color="#3b5999">    &radic; &reg; &copy; &trade; ♂ ♀ ♡ ❤ ⁂ あ ☆ ☺ ☻ ✿ ♫ ♪ ღ &diams; &clubs; ♤ ☼ ☀ ॐ シ &epsilon; ї з 乀 ☃ ♨ ♡ ♥ ★ ♀ ♂ ♠ ♤ ♣ ♧ © ± ☺ ☻ ☼ ☎ ♨ ☞ ♩ ♪ ♫<br /></font></div>
<button id="create_button" type="submit"></button>
</form>
        </div>
        
        <div id="popular_pages" class="rounded box_420">
            <h2>Frases mas populares</h2>
            <ul>
                                    <? 
    $x
=mysql_query("SELECT * FROM fblike ORDER BY hits DESC LIMIT 0,10");
    
$nr=0;
    while (
$y=mysql_fetch_assoc($x)) {
        
$id=$y['id'];
        
$like=$y['like'];
        
?>
        
              <li><a href='<?=$url_like?><?=$id?><?=$url_end?>'><iframe src="http://www.facebook.com/plugins/like.php?href=<?=$url_like?><?=$id?><?=$url_end?>&amp;layout=button_count&amp;show_faces=false&amp;width=120&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe><? echo substr($like0,44);?></a><br>
              </li>
         <?
    
}
    
?>
          </ul>
</div>
        
        <div id="new_pages" class="rounded box_420">
            <h2>Frases Nuevas</h2>
            <ul>
                                     <? 
        $x
=mysql_query("SELECT * FROM fblike ORDER BY id DESC LIMIT 0,10");
        
$nr=0;
        while (
$y=mysql_fetch_assoc($x)) {
            
$id=$y['id'];
            
$like=$y['like'];
            
?>
            
           <li><a href='<?=$url_like?><?=$id?><?=$url_end?>'><iframe src="http://www.facebook.com/plugins/like.php?href=<?=$url_like?><?=$id?><?=$url_end?>&amp;layout=button_count&amp;show_faces=false&amp;width=120&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe><? echo substr($like0,44);?><br></a></li>
             <?
        
}
        
?>

                                
            </ul>
        </div>
        <p align="center">
        <script type="text/javascript"><!--
google_ad_client = "ca-pub-1570674365886019";
/* DameLike Top 728x90 */
google_ad_slot = "7858083492";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
</p>
        <table style="width: 100%; height: 4px; border-collapse: collapse" border="0" bordercolor="#000000" cellpadding="3" cellspacing="0">
          <tbody>
            <tr valign="top">
              <td><p>&nbsp;</p></td>
              <td align="center" background="images/fb-footer.png" height="54" width="837"><p align="left"><br />
                &copy; 2012 DameLike.com.ar - Crea tu Frase y compartelo! <img src="images/pages.png" alt="" width="20" height="20" /></p></td>
              <td><p>&nbsp;</p></td>
            </tr>
          </tbody>
</table>
<br>
    
</body>
</html>