I'm doing a process in my code, where $ _SESSION ['test'] takes the value that returns from the database, where it executes its function in parts, because if I have a unique string, it loads the information perfectly, but if the string has space it does not recognize the integer value and brings the data in half. Example: if the database returns the value "Test Street" the value that the $ _SESSION returns is only "Street".
I would like to know if the $ _SESSION function does not recognize values with spacing and if there is any way to retrieve this value and exchange information between two PHP's pages.
Configuration.php:
<div class="col-md-9">
<label>Endereço</label>
<input type="text" class="form-control" id="end" name="end" value=<?php echo $_SESSION['endereco'] ?>><br>
</div>
Php that updates the data:
$_SESSION['endereco'] = $consulta["endereco"] ;