Questions tagged as 'php'

3
answers

alternatives to SESSION and COOKIE?

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...
asked by 11.12.2017 / 21:46
2
answers

How can I make a css style detect it in a single format (mobile or pc)

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...
asked by 24.09.2016 / 12:12
2
answers

Skip input in Form with Enter key

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...
asked by 05.06.2018 / 14:45
3
answers

delete 'NULL' IF it comes within a fix

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:...
asked by 06.04.2018 / 21:27
1
answer

How to replace spaces in String with underscores?

$cadena = "Esta es la cadena que quiero cambiar"; /* . . .El código que lo convierte . . */ echo $cadenaconvertida;    Result: "Esta_la_cadena_ que_quiero_cambiar"     
asked by 13.06.2018 / 12:53
2
answers

I update my user as root

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...
asked by 08.06.2018 / 17:57
2
answers

Get Name of an input in php

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"...
asked by 13.12.2017 / 21:11
2
answers

Convert String to Json in php

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}...
asked by 06.07.2017 / 16:58
2
answers

Search email in text string

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...
asked by 11.06.2017 / 17:45
1
answer

Create pdf with php7

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: _ (     
asked by 23.02.2017 / 18:38