Questions tagged as 'php'

2
answers

How to insert $ _POST into HTML form input?

How can I insert a $_POST into a input of a HTML form? In a simple login form, by leaving a field blank, the script retrieves the filled field, keeps it filled, and reports the error of the empty field, so the user does not...
asked by 17.06.2015 / 03:48
2
answers

How to open a screen with pre-filled form with PHP and HTML?

Good evening everyone, I'd like to know how to open a form whose fields are already filled in with user data (resulting from a search in the database), and it's up to him to only edit the information. I searched the internet and found a way, but...
asked by 20.06.2015 / 00:52
2
answers

json_encode does not return anything

What I'm doing I'm pulling data through PHP with a list of cities to create a graph with Javascript, and I realized that it was not returning the data, so I accessed the file that takes the data from the database and does the conversion with...
asked by 15.06.2015 / 15:19
1
answer

How do I receive data from a form using the HTML class attribute?

I know it's possible to "call" the name of a form into a php file. But in a php file, it is possible to "call" a class made in a form to get the same effect of "calling" the name, that is, how to send data from a form to a php file through a cla...
asked by 17.10.2015 / 21:59
1
answer

How do I sign in and log in?

I have a HTML page with a button for admin before you have a popup login and the php of that login to is in another file. And I wanted to know how to do it so that if he accepts the login, he can always go to that button without having to...
asked by 17.06.2015 / 17:13
1
answer

How to do a string concatenation with values from a database?

I want to concatenate different record values, for example, I have the table below: | id | value | 1 | value1 | | 2 | value2 | | 3 | value3 | To show the following result: value1, value2, value3 I'm using PHP + MySQL.     
asked by 10.10.2015 / 05:21
3
answers

Save a great form in the database

Let's suppose I have a large form, 30 fields containing textareas , radio buttons , checkboxes , select tags , etc. After the submit of the form, what would be the best way to get these values and then save them...
asked by 16.10.2015 / 22:04
2
answers

Why does not Update?

Whydonotyouupdate?...Noerrornonesodonotupdate//Prepraligacaophpmysql$stm=$pdo->prepare('SELECT*FROMsol_camisetaWHEREcod_nome_aluno=:id');//Atribuioparamentroao$_GET['id']queéoidqueestanaurlecolocaelenoprepareacima$stm->bindValue(':id',$_...
asked by 13.10.2015 / 01:40
1
answer

remove duplicate values in multidimensional array

I have a huge multidimensional array and I need to remove duplicate values with PHP or some function that does this when using CakePHP. Array structure: Array ( [0] => Array ( [Advertencia] => Array (...
asked by 07.05.2015 / 21:30
3
answers

Show DB value in Dropdown Box

I have a user-level value in my database and would like to be able to modify it in the change. I need to open the page to load the logged in user level: <div class="form-group"> <label>Nivel de Usuário</label> <sel...
asked by 07.10.2015 / 16:56