While it's true that between cookies and sessions there are similarities and differences, is there an alternative to these two options?
On the one hand, the information in cookies can be modified by the user, so storing, for example, a...
I need to make a CSS style active only when I open the web from a desktop PC, either on tablets or mobile I can disable it.
I know it's an attack on responsivity, create a carousel, but I wanted to start with the web in the middle of the imag...
Good day to all, I would like you to collaborate with me, I want that at the moment of input it is not with the Tab key but with Enter, this is my code, Thank you very much for the help.
<?php
session_start();
if (empty($_SESSION["DataU...
How can I remove NULL if it comes in the array?
I was using unset() but it does not work for me.
if (in_array('NULL', $conocimientosEspecificos)) {
unset($conocimientosEspecificos['NULL']);
}
This is my example arrangement:...
$cadena = "Esta es la cadena que quiero cambiar";
/*
.
.
.El código que lo convierte
.
.
*/
echo $cadenaconvertida;
Result: "Esta_la_cadena_ que_quiero_cambiar"
I have a question, I have a form where I update the fields of the users the problem is when I want to update the username I update it as root regardless of what you type it always updates it as root.
<form action="ejecutareditar.php" method...
Is it possible to obtain the name of an input that was sent by post through php?
Example:
<form method="post" action="controller.php">
<input type="text" name="nombre" value="perro">
<input type="submit" value="enviar"...
I can not convert a string to a json , when I try with json_decode() it returns a value null .
The string that I try to convert are like these:
[{id: 6, text: "10", item: 0}, {id: 7, text: "45", item: 1}...
I'm looking for the world if you could search for an email address in a text string or text string (I do not know exactly what difference there is) and how you could get only that address to use it as a variable.
I had thought about using st...
Do you know of any way to create pdf from php type fpdf but for php7?
or maybe something that generates xls or similar.
I'm looking on the internet and everything is for php 5: _ (