Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/06/2010, 21:06
Avatar de Vergara
Vergara
 
Fecha de Ingreso: junio-2010
Ubicación: San Francisco California
Mensajes: 249
Antigüedad: 13 años, 10 meses
Puntos: 6
como mostrar contenido oculto con cokies???

hola, como puedo mostrar el contenido que esta abajo de el primer codigo php sin que el usuario se aya logeado????

Cita:
<?php
$username = $_COOKIE['loggedin'];
if (!isset($_COOKIE['loggedin'])) die("<h1>Welcome<p><a href=login.php>Log In</p><p><a href=registrar.php>Sign Up</p></a></h1>");
echo "<h1>Welcome $username</h1>";

?>
<p><a href="logout.php">Sign Out</a></p>

</h1>
</p>

</div>


</div>







<div id="bienbenido">
<h2> </h2>


<?php $url = 'http://www.fileden.com/files/2007/11/5/1564904//born hustling hook.mp3' ?>
<?php $new = 'http://www.fileden.com/files/2007/11/5/1564904/Richi%20rich.mp3' ?>
















<div id="beats">


<?php




$nombredelbeat = 'Affter hours';
?>
<?php


$pre = 50.00


?>




<form name="_xclick" action="https://www.paypal.com/es/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?php


include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error());

while ($qry = mysql_fetch_array($result)) {

echo "$qry[email]";
}
?>"
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="<?php
echo "$nombredelbeat"

?>">

<input type="hidden" name="amount" value="<?php
echo "$pre"

?>">


<P>
<?php
echo "$nombredelbeat<br/>";
?>
<?php


include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error());

while ($qry = mysql_fetch_array($result)) {

echo "By: <a href='profile.php?usuario=$qry[username]'>$qry[username]</a>";
}
?>
<br/>

<object data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" width="200" height="20" type="application/x-shockwave-flash">
<param value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" name="movie"/>
<param value="#000000" name="bgcolor"/>
<param value="mp3=<?php echo "$new" ?>" name="FlashVars"/>
</object>


<input type="image" src="objetos/paypal.png" border="0" name="submit" alt="Realice pagos con PayPal: es rápido, gratis y seguro">
</form>





</div>