Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/10/2012, 09:41
TikiImages
 
Fecha de Ingreso: octubre-2012
Ubicación: Argentina
Mensajes: 5
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: Cambiar estilo del Boton Submit

Perdon Doble post, tambien queria enseñar donde esta todos los codigos asi tienen una idea mejor, este es el index.phpwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww


Código:
<div style="text-align:center"><!DOCTYPE html>
<html>

<head>
   
   <title>Tiki Images - Tu Hosting de Confianza</title>
<link rel="stylesheet" href="boton-css3.css" type="text/css">
   
   
      

</head>
<body>
<a class="button grande azul" href="#"><span>Botón</span></a> <a class="button grande azul" href="#"><span>Botón</span></a> <a class="button grande azul" href="#"><span>Botón</span></a> <a class="button grande azul" href="#"><span>Botón</span></a>
</html>
</body>
</html> 
<br>
<br>
<html>

<head>
   
   <title>Tiki Images - Tu Hosting de Confianza</title>
<link rel="stylesheet" href="boton-css3.css" type="text/css">
   
   
      

</head>
<body>
<form name="subir_imagen" method="post" enctype="multipart/form-data">         
    <input type="file" name="imagen"  /><br />
    <input type="submit" name="botEnviarImagen" value="Subir Imagen" class:"button grande azul" />          
</form>
</html>
</body>
</html>
<?php

        if(isset($_POST["botEnviarImagen"])){
            $nameimagen = $_FILES['imagen']['name'];
            $tmpimagen = $_FILES['imagen']['tmp_name'];
            $extimagen = pathinfo($nameimagen);
            $ext = array("bmp","gif","jpg","png");
            $urlnueva = "imagenes/".md5($name . time()).'.'.$extimagen['extension'];
           
           
                if(is_uploaded_file($tmpimagen)){
               
                    if(array_search($extimagen['extension'],$ext)){
                   
                        copy($tmpimagen, $urlnueva);
                        echo '<img src="'.$urlnueva.'" /><br>';
                        echo "Tu imagen (URL): <a href='$urlnueva'>$urlnueva</a>";
                    }
                   
                    else {
                   
                        echo "Solo se permiten imágenes con formato bmp, jpg, gif o png<br>";
                       
                    }
                   
                }
               
                else {
               
                    echo "Selecciona una imagen.";
                   
                }
       
        }
?></div>

<?php
$archivo = "cuenta.txt";
$abrir = fopen($archivo,"r");
$cuenta = trim(fread($abrir,filesize($archivo)));

if ($cuenta != "") $cuenta++;
else $cuenta = 1;
@fclose($abrir);
$abrir = fopen($archivo,"w");
@fputs($abrir,$cuenta);

@fclose($abrir);
echo 'Numero de Visitas: '.$cuenta;
?>


<body background="http://img.webme.com/pic/i/imx-design/bg.jpg">