Questions tagged as 'php'

1
answer

Calendar with restrictions with HTML, JavaScript, CSS

I need help. I seek to implement a form where one of the fields is a calendar, which has the following characteristics: 1) Saturdays and Sundays disabled. 2) That does not allow to select previous dates. 3) As the shipments of the...
asked by 11.10.2018 / 02:59
1
answer

Validate form with JS [closed]

I want to validate a form with js through an alert My code is the following but it is not working for me I have removed the type="submit" from the button, otherwise, it always confirms the form function security(){ var mensaje =...
asked by 11.10.2018 / 08:01
1
answer

How to pass a ternary operator to conditional if in php?

I recently had a Ternary operation that is copied here below, variable1 += (variable1.length < 1 ? " " : '|') +(array_varible1[elemento_for].length >0 ? array_varible1[elemento_for] : " "); It works perfectly and does everything I'm...
asked by 30.10.2018 / 19:57
1
answer

Images broken when showing

Hello good afternoon someone could tell me because some images are broken but others are not this is my ajax $('#cargueArchivo').click(function(){ if($('#imagen').val() != "") { var archivo = $('#imagen')[0].files[0]; var nom...
asked by 02.10.2018 / 16:50
2
answers

error when traversing array

Good I have a problem when walking my arrya, it marks me indefinitely, I have always done it like this and I have never had any problems, it is in MVC ajax function cargar_requerido(accion) { var accion = accion; $.ajax({ t...
asked by 09.10.2018 / 15:30
1
answer

Create calendar current date php

I am trying to create a calendar of the current date, which adds buttons from the current day to 7 days onwards, in order to include actions. I have tried with one taken from a web, but the truth is that I do not know how to modify it to incl...
asked by 22.11.2018 / 10:45
1
answer

concatenate in vba to send by mail

I'm using the ShellExecute function that allows me to open a link from a macro in outlook, I need to be able to read the mail and send the information through a link where a server in php will process it How do I concatenate the x that has the n...
asked by 07.11.2018 / 18:08
2
answers

Error passing data from ajax to php (Notice: Undefined index: id)

This is the ajax code: clicking on a button opens that function and saves the id of that button in a variable called id. Then it is assumed that with ajax that id is sent to form.php but I get the following error:    Notice: Undefined index:...
asked by 07.11.2018 / 22:10
1
answer

In a select option, another data appears

Hello good afternoon friends I would like that in a select option it could be shown next to the cedula and the name two data in an option for the moment I have this code $html .= "<option value='".$row['cedula']."'>".$row['cedula']."<...
asked by 26.09.2018 / 21:38
1
answer

PHP Mailer | Problem when trying to send emails with Gmail

I am trying to make a registration form with password confirmation with PHPMailer. My code for my phpmailer data function enviarEmail($email, $nombre, $asunto, $cuerpo){ require_once 'PHPMailer/PHPMailerAutoload.php'; $mail =...
asked by 26.09.2018 / 14:40