Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/05/2010, 21:11
Avatar de Maliante
Maliante
 
Fecha de Ingreso: noviembre-2008
Mensajes: 15
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: Como Presento las Imagenes no trabaja

Aqui les dejo las paginas segun las cree en el servidor

admin.php
Código:
<html>
<body>
<?php
if(isset($_REQUEST['send'])){
    $gift=$_REQUEST['gift'];
    $file=fopen("gift.txt","w+");
    fwrite($file,$gift);
    fclose($file);
}
$file=fopen("gift.txt","r");
$gift=fgets($file,1);
fclose($file);
?>
<form name="frm" method="post">
    <p>Captive Works 600:</p>
    <p>
        <input name="gift" type="radio" value="1" <?php if($gift==1 or $gift=='')echo "checked"?>>No ECM<br>
        <input name="gift" type="radio" value="2" <?php if($gift==2)echo "checked"?>>Parcial ECM<br>
        <input name="gift" type="radio" value="3" <?php if($gift==3)echo "checked"?>>Full ECM<br>  
    </p>
    <p>
        <input type="submit" name="send" value="Send">
        <input type="reset" name="reset" value="Reset">
    </p>
</form>


</body></html>
status.php
Código:
<html>
<body>

<?php
$file=fopen("gift.txt","r");
$gift=fgets($file,1);
fclose($file);

switch($gift){
    case 1:echo "<img src='http://ftasupport.info/status/up.gif' />";break;
    case 2:echo "<img src='http://ftasupport.info/status/partial.gif' />";break;
    case 3:echo "<img src='http://ftasupport.info/status/down.gif' />";break;
    case 4:echo "<img src='http://ftasupport.info/status/frzn.gif' />";break;
}
?> 

</body></html>
y la pagina de almacenar la data es gift.txt

Saludos

Maliante