I am writing a system that should update two divs, as much as possible, in real time.
The way I found it is as follows, using AJAX:
function actualizarDatos(){
$.ajax({
type: 'POST',
cache: false,
async:true,
url: 'l...
I am setting up my website, I have a login section, but if I put the full url to the next page after login it is within reach, although it has no data, since I use PHP through POST, but I would like to know if there is any form inside my server...
I would like to know how it is sent from a single form to different tables.
for example I have the following code could add an example by sending different records to two tables.
<!doctype html>
<html>
<head>
<meta char...
While there are similar questions answered, I could not solve my problem. I have generated from Php, a two-dimensional array obtained from a previous page, from where I passed the data by the POST method, now I need to save them in a table previ...
I have this simple code that reads an arch; notes.txt. The last data leaves them down and not up, that is normal for how they are saved, but how can I make them read from bottom to top.
<?php
$ar = fopen("notas.txt","r") or die("NULL");
whi...
I have a problem with my form. The functionality of sending information to an email is good thanks to PHPMailer , when you submit, the information is sent to a php file called contacto.php, this is where I check that it is not spam and I think...
How can I put the result in the txt when I click on the button? without submit?
thanks in advance for the help
<?php
function generarCodigos($cantidad=3, $longitud=10, $incluyeNum=true){
$caracteres = "ABCDEFGHIJKLMNOPQ...
I have a website in digital ocean, com LAMP.
The local project works.
when I put it on the remote server, and set the file /etc/apache2/apache2.conf
with the project route. but this command
sudo apachectl configtest
I miss this er...