tengo dos inputs, email y contraseña... el punto es que apenas carga la página ya me deja estos inputs con datos y no quiero permitir eso.. hay algo como autocomplete="off"? pero para estos casos donde ya al cargar tiene los datos escritos ...
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes Menú
function F($dato)
{
if($dato viene de una variable)
{
echo 'el parámetro viene de una variable';
}
else
{
echo 'el parámetro viene de una constante';
}
}
F(700); // el parámetro viene de una constante
$variable = 700;
F($variable); // el parámetro viene de una variable
SELECT X.campo_1, X.id_admin, X.campo_3, U.id_usuario, U.nombre, U.avatar FROM tabla_x X INNER JOIN usuarios U ON X.id_admin = U.id_usuario;
let string = 'form_x.input_1.value, form_x.input_2.value, form_x.input_3.value, form_x.input_4.value';
// si yo hago..
eval([string]); // esto va a crear un arreglo donde solamente agregará el último elemento, es decir el valor del input 4... Los demás no me aparecen.
[code]
[/code]
define('HTTP_PROTOCOL', 'http'); // http protocol
define('ROOT_URL', (HTTP_PROTOCOL).'://'.($_SERVER['HTTP_HOST']).'/myApp'); // donde myApp es el nombre x de la aplicación
// como llamo a un archivo .css
<link rel="stylesheet" type="text/css" href="<?php echo(ROOT_URL); ?>/css/fonts.css<?php echo(VERSION_LAST); ?>">
// como llamo a un script js
<script type="text/javascript" src="<?php echo(ROOT_URL); ?>/javascript/highcharts.js<?php echo(VERSION_LAST); ?>"></script>
// como llamo a una imagen
<img src="<?php echo(ROOT_URL); ?>/images/myPhoto.jpg<?php echo(VERSION_LAST); ?>">
$result = str_replace("'", "'", $data);
$result = str_replace('"', '"', $result);
/'+[\A-Z]+'/gi
$text = Limpiar($_POST['input_text']); // limpio el dato (escapo html)
echo '<br>'.$text.'<br>';
?>
<h3><?php echo($text); ?></h3>
<textarea><?php echo($text); ?></textarea>
<script type="text/javascript">
alert('<?php echo($text); ?>'); // acá vienen los problemas
</script>
<?php
$.ajax// blah blah blah
.done(function(results) // al momento de finalizar la ejecución del archivo .php
{
$('#elemento').html(results);
})
$.ajax// blah blah blah
.done(function(results) // al momento de finalizar la ejecución del archivo .php
{
if($.trim(results))
{
$('#elemento').html(results);
}
})
<div id="elementos"></div>
$('#elementos').prepend('<div class="elemento">ELEMENTO 1</div>'); // esperaría que esto tuviera la posición 0
$('#elementos').prepend('<div class="elemento">ELEMENTO 2</div>'); // esperaría que esto tuviera la posición 1
$('#elementos').prepend('<div class="elemento">ELEMENTO 3</div>'); // esperaría que esto tuviera la posición 2
document.querySelectorAll('.elemento')[0].style.opacity = 0.5; // esperaría que modifique al ELEMENTO 1 pero modificará al ELEMENTO 3
$x = 1700;
$x = 1700; // devolvería 17
ini_set('session.cookie_lifetime', 43200); // (12 hours)
ini_set('session.gc_maxlifetime', 43200); // (12 hours)
$('#elemento').html('<h1>titular</h1>');
$('#elemento').html(<h1>titular</h1>
<!-- Muchos más "códigos" HTML -->
);
function Escape_HTML(string)
{
var map = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": '''
};
return string.replace(/[&<>"']/g, function(m) { return map[m]; });
}
if($quantity_not > 50)
{
$quantity = $quantity_not - 50; // cantidad de registros que tomará en LIMIT
$consulta = $conexion->prepare('DELETE FROM notificaciones WHERE id_usuario = :id_usuario AND :fecha_restada >= unix_created ORDER BY id_notificacion DESC LIMIT 50, :quantity'); // en LIMIT no pongo 51 porque cuenta el cero también, por eso se pone 50
}
if($quantity_not > 50)
{
$consulta = $conexion->prepare('DELETE FROM notificaciones WHERE id_usuario = :id_usuario AND :fecha_restada >= unix_created AND (id_notificacion BETWEEN :ID_INFERIOR AND :ID_SUPERIOR) ORDER BY id_notificacion DESC');
}
PHP Warning: session_start(): open(C:\xampp\tmp\sess_48c6pila4324i7ldajcvd61dfc, O_RDWR) failed: Permission denied (13)
session_start();
static function Marcar_Desconectados()
{
$unix_grace = strtotime('-x minutes', time());
$con = Conectar_BD(nombre_usuario, contrasena);
$query = $con->prepare('UPDATE users SET connected = 0 WHERE connected = 1 AND :unix_grace >= unix_activity');
$query->bindValue(':unix_grace', $unix_grace, PDO::PARAM_INT);
$query->execute();
}
x::Marcar_Desconectados();
$con = Connection(USERNAME, PASSWORD);
$query = $con->prepare('SELECT id_album FROM albums WHERE '.($by).' = :by_value');
$query->execute(array(':by_value' => $by_value));
$results = $query->fetchAll();
$con = Connection(USERNAME, PASSWORD);
$query = $con->prepare('SELECT id_album FROM albums WHERE :by = :by_value');
$query = $con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$query->bindParam(':by', $by);
$query->bindParam(':by_value', $by_value);
$query->execute();
$results = $query->fetchAll();
$query = $con->prepare('DELETE FROM attempts WHERE id_user IN (SELECT A.id_user, MAX(A.unix_date) FROM attempts A INNER JOIN users U ON A.id_user = U.id_user WHERE (:unix_grace_delete_attempts >= MAX(A.unix_date)) AND U.login_banned = 0 GROUP BY A.id_user HAVING COUNT(*) >= 1 AND COUNT(*) <= 5');
$query->execute(array(':unix_grace_delete_attempts' => $unix_grace_delete_attempts));
$unix_now = time();
$unix_grace_delete_attempts = strtotime('-12 hours', $unix_now);
* ID_USER IP
1. 37 ::1
2. 37 ::1
3. 37 ::1
4. 37 ::1
5. 37 ::1
6. 37 ::1
7. 79 225.341.63
"DELETE FROM attempts WHERE [Aquellos usuarios que tengan = 6 tentativas]"
function myFunction($variable)
{
$variable = 3;
}
$variable = 7;
myFunction($variable); // entonces le mando por parámetro la variable a la que le quiero modificar el valor
var expression_lower = new RegExp('[a-z]');
var expression_number = new RegExp('[0-9]');
var expression_symbol = new RegExp('([!,%,&,@,#,$,^,*,?,_,~])');
var expression_upper = new RegExp('[A-Z]');
var security = 0;
if(string.match(expression_lower))
{
security = security + 1;
}
if(string.match(expression_number))
{
security = security + 1;
}
if(string.match(expression_symbol))
{
security = security + 1;
}
if(string.match(expression_upper))
{
security = security + 1;
}
if(string.length >= 8)
{
security = security + 1;
}
var formdata = new FormData();
var my_array = []; // esto es un arreglo vacío, si por consola imprimimos este dato nos va a devolver: []
for(var i = 0; i < my_array.length; i++)
{
formdata.append('my_array[]', my_array[i]);
}