If it can be in jquery or ajax, the help would be appreciated. The idea is that when the user clicks on that checkbox, he cannot uncheck it
Home
/
user-90704
Johendry Parra's questions
Johendry Parra
Asked:
2020-08-05 07:05:07 +0800 CST
Hello everyone I have a question I have this code
for (i=1; i>=variable; i++ ){ function formula '+i+' (){ } }
I would like to know how I make the function repeat itself automatically, I add the variable i but it says error
SyntaxError: missing (before formal parameters
I appreciate the help provided in advance
Johendry Parra
Asked:
2020-06-20 06:22:51 +0800 CST
I want to remove php/html extensions with .htaccess I have this code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
</IfModule>
but it does not modify the url, that is, the current url is this example:
domain/folder/home.php
I want it to stay
domain/folder/home
Johendry Parra
Asked:
2020-06-13 11:50:44 +0800 CST
I am sending an email in PHP using the php mailer library but the problem is that I want the button to say loading while the mail is being sent and after it says your mail has been sent successfully, check the inbox
PHP code:
//send mails
$mail->IsSMTP();
$mail->SMTPDebug = 0;
$mail->Helo = "smtp.gmail.com"; // nombre del dominio de primer nivel
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com"; //servidor donde se enviara el email
$mail->Port = "465";
$mail->Username = "[email protected]"; //cuenta que enviara los correos
$mail->Password = "123456"; //contraseña de la cuenta
$mail->From = "[email protected]"; // correo de quien lo envia
$mail->FromName = 'titulo'; //nombre o titulo referente al destinatario
$mail->Subject = 'sub'; //titulo que aparece despues de quien lo envia
$mail->IsHTML(true);
$mail->AddAddress([email protected]); //para quien va
$mail->Body = "ok"; //cuerpo del mensaje
$mail->CharSet = 'UTF-8';
if(!$mail->Send()){
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
/* aqui el mensaje que se a enviado exitosamente */
}
JavaScript code:
var url = "a.php";
$.ajax({
type: "POST",
url: url,
data: $("#3as3dsad22s1").serialize(),
success: function(data) {
$("#asd2a2sd23333asd").html(data);
}
});
return false;
I appreciate the help