elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Tutorial básico de Quickjs


  Mostrar Mensajes
Páginas: 1 2 3 4 [5] 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 26
41  Programación / PHP / variable post pasa sin valor. en: 28 Septiembre 2014, 09:34 am
Hola a todos.
Bueno mi problema es que al pasar un valor por el metodo post desde un formulario y al usar el valor de post en php obtengo una variable vacia y no se porque, mi codigo es este.

index.html
Código
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang = "es">
  3. <head>
  4. <title>S</title>
  5. <meta name="description" content="S" />
  6. <meta name="keywords" content="H" />
  7. <meta http-equiv="Content-type" content="text/html: charset=iso-8859-1" />
  8. <link rel="StyleSheet" type="text/css" href="css/style-main.css" media="screen" />
  9. </head>
  10. <body>
  11. <div id="wrapper-main">
  12. <div id="wrapper">
  13. <div id="form-session">
  14. <form id="login" enctype="text/plain" method="post" action="php/session.php">
  15.                                            <table id="form-session">
  16.                                                <tr>
  17.                                                    <td><label>Inicio de sesi&oacute;n</label></td>
  18.                                                    <td><label>Usuario:</label></td>
  19.                                                     <td><input name="user_name" type="text" size="15" /></td>
  20.                                                </tr>
  21.                                                <tr>
  22.                                                    <td><label>Contrase&ntilde;a:</label></td>
  23.                                                    <td><input name="user_pass" type="password" size="15"/></td>
  24.                                                    <td><input type="submit" value="Entrar" /></td>
  25.                                                </tr>
  26.                                             </table>
  27. </form>
  28. </div>
  29. </div>
  30. </div>
  31. </body>
  32. </html>
  33.  

session.php
Código
  1. <?php
  2.  
  3. $conexion = mysqli_connect('localhost','root','P','login');
  4. if(!$conexion)
  5. {
  6.  echo "Ha fallado la conexión: ";
  7. }
  8.  
  9. $login = filter_input(INPUT_POST, "user_name", FILTER_SANITIZE_SPECIAL_CHARS);    
  10. $password_user = filter_input(INPUT_POST, 'user_pass', FILTER_SANITIZE_SPECIAL_CHARS);
  11.  
  12. if(($password_user == NULL) || ($login == NULL))
  13. {
  14.    echo "no tiene valores<br />";
  15. }
  16. else{
  17.    $query = "SELECT * FROM users WHERE user_nom = '$login'";
  18.    if (($result = mysqli_query($conexion, $query)) == FALSE){
  19.      echo "La consulta no se realizo ";
  20.    }
  21.  
  22.     $row = mysqli_fetch_array($result, MYSQLI_ASSOC);
  23.    if($row["user_nom"] == $login)
  24.    {    
  25.       if($row["password"] == $password_user)
  26.       {
  27.        session_start();  
  28.        $_SESSION['usuario'] = $login;  
  29.        header("Location: ../alumnos/default.php");  
  30.       }
  31.       else
  32.       {
  33.        ?>
  34.         <script languaje='javascript'>
  35.          alert("Contraseña Incorrecta");
  36.          location.href = "../index.html";
  37.         </script>
  38.        <?php
  39.  
  40.       }
  41.    }
  42.    else
  43.    {
  44.      ?>
  45.       <script languaje='javascript'>
  46.        alert("El nombre de usuario es incorrecto!");
  47.        location.href = "../index.html";
  48.       </script>
  49.      <?php
  50.  
  51.    }
  52. }
  53.  
  54. mysqli_close($conexion);
  55.  
  56. ?>
  57.  
Espero me puedan ayudar.
Saludos.
Drewermerc.
42  Programación / PHP / Re: error al ejecutar php en: 28 Septiembre 2014, 07:26 am
Hola a todos.

Bueno pues ya pude solucionar mi error era un error de sintaxis por lo que no se ejecutaba  el codigo php.
Saludos.
Drewermerc.
43  Programación / PHP / Re: error al ejecutar php en: 28 Septiembre 2014, 04:13 am
Hola a todos.
bueno pude solucionar lo del Inteval server error desinstalado todo y borrando lo archivos de su configuracion pero ahora tengo el problema que no puedo abrir ningun archivo .php se queda en blanco el navegador y no hace nada.
aqui les dejo lo que marca en access.log
Código
  1. ::1 - - [27/Sep/2014:21:08:58 -0500] "GET /proyecto/ HTTP/1.1" 304 211 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
  2. ::1 - - [27/Sep/2014:21:08:58 -0500] "GET /proyecto/css/style-main.css HTTP/1.1" 304 210 "http://localhost/proyecto/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
  3. ::1 - - [27/Sep/2014:21:08:58 -0500] "GET /proyecto/js/jquery-2.1.1.js HTTP/1.1" 304 212 "http://localhost/proyecto/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
  4. ::1 - - [27/Sep/2014:21:09:06 -0500] "POST /proyecto/php/session.php HTTP/1.1" 500 274 "http://localhost/proyecto/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
  5. ::1 - - [27/Sep/2014:21:09:12 -0500] "POST /proyecto/php/session.php HTTP/1.1" 500 274 "http://localhost/proyecto/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
  6.  

Bueno espero me puedan ayudar ya queno e podido encontrar una solucion.
Saludos.
Drewermerc.
44  Programación / Programación C/C++ / Re: Archivo con registros de longitud variable [C] en: 26 Septiembre 2014, 23:16 pm
Hola free_c0de.

Solo basta con quitar contacto[i++] = c; de la linea 39 ya que desde hay ya almacenaste el @ y cuando mas abajo haces la otra comparación la vuelve almacenar.
Edito:
bueno no había leído lo ultimo de tu mensaje bueno si quieres que se muestre todo el e-mail completo sin hacerle mucha modificación a tu código:
Código
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4. FILE *fd;
  5.  
  6. void mostrarHotmails(void);
  7.  
  8. int main(int argc, char *argv[]){
  9.    mostrarHotmails();
  10.    return 0;
  11. }
  12.  
  13. void mostrarHotmails(void){
  14.    char c;
  15.  
  16.    if( (fd=fopen("data_Prog_01.txt","rt")) == NULL ){
  17.        printf("\nNo se pudo abrir el archivo.");
  18.        exit(1);
  19.    }
  20.  
  21.    else{
  22.        char find[13] = "@hotmail.com"; // email que voy a buscar
  23.        char email[13];                 // para almacenar el dominio de emails de los usuarios (para luego comparar con find)
  24.        char contacto[30];              // para almacenar todo el registro del contacto
  25. int i=0, j = 0; // indice para el arreglo contacto.
  26. char user[30] = {'\0'};
  27.        int contC = 0;                 //este contador me indica si ya llegue al campo de email
  28. int ie = 0;
  29.        fseek(fd,0,0);
  30.  
  31.        while( (c = fgetc(fd)) != EOF ){ // mientras no sea fin de archivo, leer un caracter.
  32.  
  33.            if( (c == ';') && (c != EOF)){
  34.                ++contC;
  35.  
  36.                if((contC==2) && (c != EOF)){   // Ya llegue al inicio del campo email.
  37.                    c = fgetc(fd);
  38.                    while((c!='^') && (c != EOF)){
  39.  
  40. if((c != '@') && (c != ';') && (c != EOF))
  41. {
  42. for( i =0; i<30 ; i++)
  43. user[i] = '\0';
  44.   i=0; j = 0;
  45.  
  46. while((c != '@') && (c != ';') && (c != EOF))
  47. {
  48. user[j++] = c;
  49. c = fgetc(fd);
  50. }
  51. }
  52.                         if((c=='@') && (c != EOF)){
  53. i=0;
  54.                            ie = 0; // indice de email
  55.  
  56.                            while((c!='^') && (c != EOF)){
  57.                                email[ie++] = c;
  58.                                contacto[i++] = c;
  59.                                c = fgetc(fd);
  60.                            }
  61.    if( (c == '^') && (c != EOF))
  62. contC = 0;
  63.  
  64.                            email[ie] = '\0';
  65.                            contacto[i] = '\0';
  66.                            if(strcmp(email,find)==0){
  67.                                printf("%s%s\n",user,contacto);
  68.                            }
  69.                        }
  70.                        c = fgetc(fd);
  71.  
  72.                    }
  73.  
  74.  
  75.                }
  76.            }
  77.  
  78.  
  79.        } // Fin de while
  80.        fclose(fd);
  81.    }
  82. }
  83.  

Espero te sirva.
Saludos.
Drewermerc.
45  Programación / PHP / Re: error al ejecutar php en: 26 Septiembre 2014, 23:05 pm
Hola el-brujo.
gracias por responder.
mira aquí están access.log:
Código
  1. :1 - - [26/Sep/2014:14:37:16 -0500] "GET / HTTP/1.1" 200 484 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  2. ::1 - - [26/Sep/2014:14:37:17 -0500] "GET / HTTP/1.1" 304 209 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  3. ::1 - - [26/Sep/2014:14:37:17 -0500] "GET / HTTP/1.1" 304 209 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  4. ::1 - - [26/Sep/2014:14:37:18 -0500] "GET / HTTP/1.1" 304 209 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  5. ::1 - - [26/Sep/2014:14:37:20 -0500] "GET / HTTP/1.1" 304 209 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  6. 127.0.0.1 - - [26/Sep/2014:14:44:07 -0500] "GET / HTTP/1.1" 200 484 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  7. 127.0.0.1 - - [26/Sep/2014:14:44:08 -0500] "GET /favicon.ico HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  8. 127.0.0.1 - - [26/Sep/2014:14:45:31 -0500] "GET /aplications.html HTTP/1.1" 404 502 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  9. 127.0.0.1 - - [26/Sep/2014:14:45:40 -0500] "GET /applications.html HTTP/1.1" 404 503 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  10. 127.0.0.1 - - [26/Sep/2014:14:45:50 -0500] "GET /xampp HTTP/1.1" 404 496 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36"
  11.  

y el httpd.conf no lo encuentro crees que ese sea el problema solo encontré apache2.conf pero solo tiene esto.
Código
  1. # This is the main Apache server configuration file.  It contains the
  2. # configuration directives that give the server its instructions.
  3. # See http://httpd.apache.org/docs/2.2/ for detailed information about
  4. # the directives and /usr/share/doc/apache2-common/README.Debian.gz about
  5. # Debian specific hints.
  6. #
  7. #
  8. # Summary of how the Apache 2 configuration works in Debian:
  9. # The Apache 2 web server configuration in Debian is quite different to
  10. # upstream's suggested way to configure the web server. This is because Debian's
  11. # default Apache2 installation attempts to make adding and removing modules,
  12. # virtual hosts, and extra configuration directives as flexible as possible, in
  13. # order to make automating the changes and administering the server as easy as
  14. # possible.
  15.  
  16. # It is split into several files forming the configuration hierarchy outlined
  17. # below, all located in the /etc/apache2/ directory:
  18. #
  19. # /etc/apache2/
  20. # |-- apache2.conf
  21. # | `--  ports.conf
  22. # |-- mods-enabled
  23. # | |-- *.load
  24. # | `-- *.conf
  25. # |-- conf.d
  26. # | `-- *
  27. # `-- sites-enabled
  28. # `-- *
  29. #
  30. #
  31. # * apache2.conf is the main configuration file (this file). It puts the pieces
  32. #   together by including all remaining configuration files when starting up the
  33. #   web server.
  34. #
  35. #   In order to avoid conflicts with backup files, the Include directive is
  36. #   adapted to ignore files that:
  37. #   - do not begin with a letter or number
  38. #   - contain a character that is neither letter nor number nor _-:.
  39. #   - contain .dpkg
  40. #
  41. #   Yet we strongly suggest that all configuration files either end with a
  42. #   .conf or .load suffix in the file name. The next Debian release will
  43. #   ignore files not ending with .conf (or .load for mods-enabled).
  44. #
  45. # * ports.conf is always included from the main configuration file. It is
  46. #   supposed to determine listening ports for incoming connections, and which
  47. #   of these ports are used for name based virtual hosts.
  48. #
  49. # * Configuration files in the mods-enabled/ and sites-enabled/ directories
  50. #   contain particular configuration snippets which manage modules or virtual
  51. #   host configurations, respectively.
  52. #
  53. #   They are activated by symlinking available configuration files from their
  54. #   respective *-available/ counterparts. These should be managed by using our
  55. #   helpers a2enmod/a2dismod, a2ensite/a2dissite. See
  56. #   their respective man pages for detailed information.
  57. #
  58. # * Configuration files in the conf.d directory are either provided by other
  59. #   packages or may be added by the local administrator. Local additions
  60. #   should start with local- or end with .local.conf to avoid name clashes. All
  61. #   files in conf.d are considered (excluding the exceptions noted above) by
  62. #   the Apache 2 web server.
  63. #
  64. # * The binary is called apache2. Due to the use of environment variables, in
  65. #   the default configuration, apache2 needs to be started/stopped with
  66. #   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
  67. #   work with the default configuration.
  68.  
  69.  
  70. # Global configuration
  71. #
  72.  
  73. #
  74. # ServerRoot: The top of the directory tree under which the server's
  75. # configuration, error, and log files are kept.
  76. #
  77. # NOTE!  If you intend to place this on an NFS (or otherwise network)
  78. # mounted filesystem then please read the LockFile documentation (available
  79. # at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
  80. # you will save yourself a lot of trouble.
  81. #
  82. # Do NOT add a slash at the end of the directory path.
  83. #
  84. #ServerRoot "/etc/apache2"
  85.  
  86. #
  87. # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
  88. #
  89. LockFile ${APACHE_LOCK_DIR}/accept.lock
  90.  
  91. #
  92. # PidFile: The file in which the server should record its process
  93. # identification number when it starts.
  94. # This needs to be set in /etc/apache2/envvars
  95. #
  96. PidFile ${APACHE_PID_FILE}
  97.  
  98. #
  99. # Timeout: The number of seconds before receives and sends time out.
  100. #
  101. Timeout 300
  102.  
  103. #
  104. # KeepAlive: Whether or not to allow persistent connections (more than
  105. # one request per connection). Set to "Off" to deactivate.
  106. #
  107. KeepAlive On
  108.  
  109. #
  110. # MaxKeepAliveRequests: The maximum number of requests to allow
  111. # during a persistent connection. Set to 0 to allow an unlimited amount.
  112. # We recommend you leave this number high, for maximum performance.
  113. #
  114. MaxKeepAliveRequests 100
  115.  
  116. #
  117. # KeepAliveTimeout: Number of seconds to wait for the next request from the
  118. # same client on the same connection.
  119. #
  120. KeepAliveTimeout 5
  121.  
  122. ##
  123. ## Server-Pool Size Regulation (MPM specific)
  124. ##
  125.  
  126. # prefork MPM
  127. # StartServers: number of server processes to start
  128. # MinSpareServers: minimum number of server processes which are kept spare
  129. # MaxSpareServers: maximum number of server processes which are kept spare
  130. # MaxClients: maximum number of server processes allowed to start
  131. # MaxRequestsPerChild: maximum number of requests a server process serves
  132. <IfModule mpm_prefork_module>
  133.    StartServers          5
  134.    MinSpareServers       5
  135.    MaxSpareServers      10
  136.    MaxClients          150
  137.    MaxRequestsPerChild   0
  138. </IfModule>
  139.  
  140. # worker MPM
  141. # StartServers: initial number of server processes to start
  142. # MinSpareThreads: minimum number of worker threads which are kept spare
  143. # MaxSpareThreads: maximum number of worker threads which are kept spare
  144. # ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
  145. #              graceful restart. ThreadLimit can only be changed by stopping
  146. #              and starting Apache.
  147. # ThreadsPerChild: constant number of worker threads in each server process
  148. # MaxClients: maximum number of simultaneous client connections
  149. # MaxRequestsPerChild: maximum number of requests a server process serves
  150. <IfModule mpm_worker_module>
  151.    StartServers          2
  152.    MinSpareThreads      25
  153.    MaxSpareThreads      75
  154.    ThreadLimit          64
  155.    ThreadsPerChild      25
  156.    MaxClients          150
  157.    MaxRequestsPerChild   0
  158. </IfModule>
  159.  
  160. # event MPM
  161. # StartServers: initial number of server processes to start
  162. # MinSpareThreads: minimum number of worker threads which are kept spare
  163. # MaxSpareThreads: maximum number of worker threads which are kept spare
  164. # ThreadsPerChild: constant number of worker threads in each server process
  165. # MaxClients: maximum number of simultaneous client connections
  166. # MaxRequestsPerChild: maximum number of requests a server process serves
  167. <IfModule mpm_event_module>
  168.    StartServers          2
  169.    MinSpareThreads      25
  170.    MaxSpareThreads      75
  171.    ThreadLimit          64
  172.    ThreadsPerChild      25
  173.    MaxClients          150
  174.    MaxRequestsPerChild   0
  175. </IfModule>
  176.  
  177. # These need to be set in /etc/apache2/envvars
  178. User ${APACHE_RUN_USER}
  179. Group ${APACHE_RUN_GROUP}
  180.  
  181. #
  182. # AccessFileName: The name of the file to look for in each directory
  183. # for additional configuration directives.  See also the AllowOverride
  184. # directive.
  185. #
  186.  
  187. AccessFileName .htaccess
  188.  
  189. #
  190. # The following lines prevent .htaccess and .htpasswd files from being
  191. # viewed by Web clients.
  192. #
  193. <Files ~ "^\.ht">
  194.    Order allow,deny
  195.    Deny from all
  196.    Satisfy all
  197. </Files>
  198.  
  199. #
  200. # DefaultType is the default MIME type the server will use for a document
  201. # if it cannot otherwise determine one, such as from filename extensions.
  202. # If your server contains mostly text or HTML documents, "text/plain" is
  203. # a good value.  If most of your content is binary, such as applications
  204. # or images, you may want to use "application/octet-stream" instead to
  205. # keep browsers from trying to display binary files as though they are
  206. # text.
  207. #
  208. # It is also possible to omit any default MIME type and let the
  209. # client's browser guess an appropriate action instead. Typically the
  210. # browser will decide based on the file's extension then. In cases
  211. # where no good assumption can be made, letting the default MIME type
  212. # unset is suggested  instead of forcing the browser to accept
  213. # incorrect  metadata.
  214. #
  215. DefaultType None
  216.  
  217.  
  218. #
  219. # HostnameLookups: Log the names of clients or just their IP addresses
  220. # e.g., www.apache.org (on) or 204.62.129.132 (off).
  221. # The default is off because it'd be overall better for the net if people
  222. # had to knowingly turn this feature on, since enabling it means that
  223. # each client request will result in AT LEAST one lookup request to the
  224. # nameserver.
  225. #
  226. HostnameLookups Off
  227.  
  228. # ErrorLog: The location of the error log file.
  229. # If you do not specify an ErrorLog directive within a <VirtualHost>
  230. # container, error messages relating to that virtual host will be
  231. # logged here.  If you *do* define an error logfile for a <VirtualHost>
  232. # container, that host's errors will be logged there and not here.
  233. #
  234. ErrorLog ${APACHE_LOG_DIR}/error.log
  235.  
  236. #
  237. # LogLevel: Control the number of messages logged to the error_log.
  238. # Possible values include: debug, info, notice, warn, error, crit,
  239. # alert, emerg.
  240. #
  241. LogLevel warn
  242.  
  243. # Include module configuration:
  244. Include mods-enabled/*.load
  245. Include mods-enabled/*.conf
  246.  
  247. # Include list of ports to listen on and which to use for name based vhosts
  248. Include ports.conf
  249.  
  250. #
  251. # The following directives define some format nicknames for use with
  252. # a CustomLog directive (see below).
  253. # If you are behind a reverse proxy, you might want to change %h into %{X-Forwarded-For}i
  254. #
  255. LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  256. LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  257. LogFormat "%h %l %u %t \"%r\" %>s %O" common
  258. LogFormat "%{Referer}i -> %U" referer
  259. LogFormat "%{User-agent}i" agent
  260.  
  261. # Include of directories ignores editors' and dpkg's backup files,
  262. # see the comments above for details.
  263.  
  264. # Include generic snippets of statements
  265. Include conf.d/
  266.  
  267. # Include the virtual host configurations:
  268. Include sites-enabled/
  269.  
  270.  

Saludos.
Drewermerc.
46  Programación / PHP / error al ejecutar php en: 26 Septiembre 2014, 20:50 pm
Hola a todo.
Bueno el siguiente problema que tengo es que cuando intento acceder a una pagina .php por ejemplo index.php meda este error que no e podido solucionar ya intente des instalando apache y volviendo a instalar  tambien con xampp y no funciona estoy trabajando en debian.
y lo mas raro es que ayer si funcionaba bien.
Código
  1. Internal Server Error
  2. The server encountered an internal error or misconfiguration and was unable to complete your request.
  3. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
  4. More information about this error may be available in the server error log.
  5. Apache/2.2.22 (Debian) Server at localhost Port 80
  6.  

Espero me puedan ayudar.
Saludos.
Drewermerc.
47  Programación / Desarrollo Web / Re: como re-dimensionar un input en: 26 Septiembre 2014, 06:55 am
Hola angel lex.
 :xD creo que si pero bueno aprenderé jquery y un poco mas de javascript.
y gracias por tu ayuda con el porcentaje en css me funciono bien.

Saludos.
Drewermerc.
48  Programación / Desarrollo Web / Re: como re-dimensionar un input en: 26 Septiembre 2014, 05:31 am
Hola angel lex.
Gracias por responder.
Bueno intente los dos métodos y no me funcionaron aun siguen sin re-dimensionarse los input text.
aquí dejo e código que tengo.
Código
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang = "es">
  3. <head>
  4. <title>prueba</title>
  5. <meta name="description" content="prueba" />
  6. <meta name="keywords" content="prueba, uno" />
  7. <meta http-equiv="Content-type" content="text/html: charset=iso-8859-1" />
  8. <link rel="StyleSheet" type="text/css" href="css/style-main.css" media="screen" />
  9. <script src="js/jquery-2.1.1.js" language="javascript" type="text/javascript"></script>
  10. $( window ).resize(recalcularInput());
  11. </script>
  12. </head>
  13. <body>
  14. <div id="wrapper-main">
  15. <div id="wrapper">
  16. <div id="form-session">
  17. <form id="sistema-login" name="form-login" enctype="text/plain" method="post" action="alumnos/default.php">
  18. <br />
  19. <label name="message-form">Inicio de sesi&otilde;n</label>
  20. <br />
  21. <label name="nom-user">Usuario:</label>
  22. <br />
  23. <input id="login" type="text" enctype="text/plain" size="15"/>
  24. <br />
  25. <label name="password-user">Contrase&ntilde;a:</label>
  26. <br />
  27. <input id="password" type="password" enctype="text/plain" size="15" />
  28. <br />
  29. <input id="send" type="button" value="Entrar" />
  30. </form>
  31. </div>
  32. </div>
  33. </div>
  34. </body>
  35. </html>
  36.  

Código
  1. body, html{
  2. height: 100%;
  3. width: 100%;
  4. margin: 0px;
  5. padding: 0px;
  6. background: #ccc;
  7. }
  8. #wrapped-main, #wrapped{
  9. width: 100%;
  10. height:100%;
  11. margin: 0px;
  12. padding: 0px;
  13. }
  14. #form-session{
  15. position: absolute;
  16. width: 20%;
  17. height: 30%:
  18. margin-left: 45%;
  19. margin-top: 5%;
  20. background-color: #c1c1c1;
  21. }
  22. #send{
  23. margin-left: 30%;
  24. }
  25.  

Saludos.
Drewermerc.
49  Programación / Desarrollo Web / como re-dimensionar un input en: 26 Septiembre 2014, 04:51 am
Hola a todos.
Bueno tengo un problema y es que cuando re-dimensiono mi pagina web el input tipo text y password no se re-dimensionan y se salen del div.
y quisiera saber si hay alguna forma de que se acoplen al div.

bueno espero me puedan ayudar.
Saludos.
Drewermerc.
50  Programación / Programación General / Como empezar con git en: 25 Septiembre 2014, 06:29 am
Hola a todos.
Bueno quisiera que me orientaran sobre como usar git en proyecto y algún material de ayuda que me pueda proporcionar ya que no encontrado una explicación clara sobre la instalación, configuración y uso.
Tengo entendido que git se usa para la gestión de proyectos ya que este hace copias de el código fuente cada cierto tiempo y esto resulta muy útil a la hora de regresa a el código antes de alguna modificación.
Bueno espero que me puedan ayudar.
Saludos.
Drewermerc.
Páginas: 1 2 3 4 [5] 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 26
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines