Posts by Gonçalo • 2,525 points
176 posts
-
0
votes1
answer1006
viewsQ: Update div in real time with php /javascript without updating page
My question is the following, assuming I have a div and in this div I have a php code that says that when someone enters the page sends a Curl. What I want to know basically is if there is any way…
-
0
votes1
answer29
viewsQ: PHP condition with ID
I’m a little new to this area, but I’m going to ask my question the same way and try to explain myself as best I can. I have a table in mysql database, which has id and name and status I wanted to…
-
2
votes3
answers21104
viewsQ: Wait x seconds and show a Ubmit
Is there any of when a user enters a page, Javascript wait 20 seconds and after waiting those 20 seconds show a Submit in real time? That is, the user would enter the page, wait 20 seconds, after…
javascriptasked Gonçalo 2,525 -
1
votes0
answers1147
viewsQ: Update information in real time javascript
I would like to know some way to update information on a given page, ie if I modify some file, update in real time without having to refresh the page with javascript. We assume that I change…
-
-3
votes1
answer639
viewsQ: Check database in real time with Javascript
I wanted to make a system where we have a blank page and when something was placed in a table of the database Javascript automatically displayed the result on the page without giving refresh, ie…
-
-4
votes2
answers558
viewsQ: Real-time database verification script
I wanted to make a script, where the page appeared: "Loading.", "Loading."" Loading...". The 3 loadings would change constantly and when to insert a result into the banco de dados loading would…
-
4
votes3
answers8495
viewsQ: Simulate click when opening the page
There is way, when someone enters a website, a Javascript event "simulate" a click? In other words, Javascript click on the site automatically as soon as the person enters. In case I have an…
javascriptasked Gonçalo 2,525 -
4
votes2
answers586
viewsQ: Error trying to use isset in Javascript
I don’t know what’s wrong with this Javascript code: if( (isset(n1)) && (isset(n2)) ){ document.getElementById('resultado').innerHTML = n1 + n2; } I think I’m mixing PHP with JS. How can I…
-
1
votes2
answers53
viewsQ: Error of Javascript Code
Well, I have the following javascript code: < script type = "text/javascript" > function teste() { var date1 = document.getElementById("data"); var date2 = document.getElementById("data2");…
-
3
votes1
answer959
viewsQ: How to calculate the days difference using "date" input?
My question is this:: I have two input of the kind date. What I want to do in Javascript is calculate the difference of days from the first to the second, ie if the person put day 19/09/2015 in the…
-
21
votes6
answers65532
viewsQ: Sum in 2 inputs and appear in real time - Javascript
My question is the following: I have two inputs type text. One person put a number in input 1 and another number in input 2. When the person had just filled in, the result of adding the 2 inputs…
-
1
votes4
answers8659
viewsQ: Receive real-time input value
Well, my question is this, I have a form with 2 inputs, that is for people to put 2 dates in each. If following I have a javascript that calculates the difference between the 2 dates. I would like…
-
0
votes0
answers37
viewsQ: How to update parts of the site without reloading javascript
Well my question is the following, my page receives information from the database, such as temperature. I wanted to know how to do, so that if I changed in my database the remperatura, my page also…
javascriptasked Gonçalo 2,525 -
3
votes1
answer1887
viewsQ: Lock Javascript F5 key
Well, as the title indicates, I’d like to know how to lock the key F5 javascript.
javascriptasked Gonçalo 2,525 -
-1
votes2
answers68
viewsQ: PHP Query Error
I’m trying to make a file in php, which refers to the person’s age and then shows, however, the $login appears to me but the person’s $age does not. I wonder what I’m doing wrong. <?php include…
-
1
votes1
answer532
viewsQ: Input with multiple HTML values
Well, my question is the following would it be possible for me to have a radio input with for example the values: Portugal Spain France Brazil, Germany And the person being able to select 2 options,…
-
2
votes2
answers3779
viewsQ: How to show an image every 5 seconds javascript
Well my question is the following, I would like to know, how would you make javascript take a 5 seconds interval before editing image. My code: window.onload = function() { if(2>1){…
javascriptasked Gonçalo 2,525 -
3
votes1
answer60
viewsQ: Simple Doubt in Javascript
Well my doubt is relatively simple, I would like to know how would do in Javascript that if a real condition, for example, 2 > 1 instead of the image of img appeared the image of the code in…
javascriptasked Gonçalo 2,525 -
0
votes0
answers33
viewsQ: How to make a set of images pass in js?
Well my question is this:: I have a PHP form that when you click PHP draws one of the following colors: yellow, orange, red, purple or green. Well what I wanted to know was if there was a way for…
-
3
votes1
answer2370
viewsQ: How can I make a roulette in Javascript
Well my question is this:: I have a form in HTML, which when pressing Submit it gives me a random number from 1 to 5 in PHP. What I wanted to know was, how could I get PHP to click the button and…
-
1
votes2
answers696
viewsQ: fwrite in a certain PHP line
I want to write a particular code on a particular line of a PHP file. <?php $arquivo_origem = "client.php"; $arquivo_destino = "copiado.php"; if (copy($arquivo_origem, $arquivo_destino)){ echo…
-
4
votes2
answers742
viewsQ: PHP search system without Mysql
I have a site with several HTML files, and I intend to make a search system in PHP, that looks for words in these HTML files, and that shows me the page or pages in which they are but without using…
-
0
votes3
answers3788
viewsQ: How to copy a file with PHP?
Well my problem is the following wish to print a PHP code in another file. For example, I have a file x.php, and I have a file y.php, in this file y.php I want this one to create a file z.php and…
-
0
votes1
answer171
viewsQ: Write a php document inside a php block
Goodnight, Well my question is the following I intend to write a php document inside a php block. For example: <?php $cn = "texto.php"; file_put_contents($cn, ''); // Inicio Codigo que queria que…
-
0
votes4
answers10317
viewsA: How to delete files inside a folder
I ended up solving my problem with the following code: <?php /* Crie uma nome da pasta exemplo: "nome_da_pasta" coloque arquivos dentro, * ele vai remover tudo como mostra o script abaixo */ /**…
-
7
votes4
answers10317
viewsQ: How to delete files inside a folder
I want to delete all files and subfolders inside a folder, but without deleting it using PHP. How can I do that?