Is there any way not using JSON or XML after ajax response and implement PHP variable directly?
$con = mysqli_connect("localhost","root","","cau");
$query = mysqli_query($con, "SELECT * FROM third");
while($row = mysqli_fetch_array($query)){
$values = $row['website'];
}
I am getting the values from an
ajax
request. Is there a way not using
JSON
or
XML
after that part? I mean can I use
$values
as
<?php echo $values ?>
in my another page?
example:
//get some pure PHP data = XHR.responseText
<select>
<option><?php echo $values ?></option>
<select>
Read more here: Source link