Questions tagged as 'php'

1
answer

Validate if an input file is empty or not with PHP

Cordial Greeting. I hope you are well, and you can help me. What I do is, I have an HTML form, which sends data by POST, to PHP, a field is an input of type file (input="file" >), and I receive it in PHP, what I want to validate is whet...
asked by 03.10.2018 / 00:45
3
answers

Access an array of objects

What would be the syntax to access this answer made with var_dump ?. For example, access EmailAddress object(stdClass)[5] public 'Results' => array (size=50) 0 => object(stdClass)[6] public 'Email...
asked by 27.09.2018 / 18:52
1
answer

Progress bar in laravel

Colleagues, I am sending from the view to the controller a data matrix to save in database, but they are a universe of 6000 records and it takes time to process, not to confuse the user I want to show a progress bar like the one in the image...
asked by 03.10.2018 / 15:50
1
answer

Problem with array in PHP

I have a problem using array. I am trying to add the average score of 'persona1'+'persona2' and divide the result by the number of people so that I can print the average number of notes between these two people. But, the result is not wh...
asked by 30.11.2018 / 20:35
1
answer

The 'onreadystatechange' method of XMLHttpRequest is not executed

I have this code that I simplified to find out why it does not work, but I still can not find the error. I put a alert() after the onreadystatechange method and I checked that it never gets executed. Why can it be? localhost / f...
asked by 04.12.2018 / 05:12
1
answer

How to know when they capture the screen of my web page?

I am working on a project with html, laravel, php, javascript, jquery and ajax the problem is that I want to know when they take screenshot to my web page and send an alert by email. I have searched for information but I do not find anything...
asked by 27.07.2018 / 20:52
1
answer

Disable the readonly attribute

I have a select where I select an object and it pulls the value to a input , but I want to ask if the text is the same Other, that the input CodArea can be editable (remove attribute readonly) <select class="form-...
asked by 25.07.2018 / 18:40
1
answer

problem when passing $ _SESSION

Login.html </div> <div class="col"> <form action="../php/comprobar_inicio_sesion.php" method="POST" name="form_login"> <div class="form-group"> <label for="exampleInputEmail1">Email</label> <...
asked by 27.07.2018 / 15:32
2
answers

Count and show it on screen, but when reloading do not restart the count, either with JavaScript or Php

Hello friends, I would like to know how to make you tell me the number of click that you make to a part of a page, and show it, I would like to do it with php so that those clicks are saved in the database but it is easier with javascript but wh...
asked by 06.08.2018 / 19:38
2
answers

Save checkbox selected and not selected

I have a question, I would like to know if it is possible to save the checkboxes that I have in one detail (so many of those selected and not selected), for example, I have an attendance detail, where it shows me all the people that are register...
asked by 01.08.2018 / 17:37