PHP & MySQL Tutorial - 40: Passing Values Through Query String

preview_player
Показать описание
Thanks for watching!

Рекомендации по теме
Комментарии
Автор

Thank you for your example.
Have a routine of google maps in which I want to fill in the coordinates via a variable. As in your example I manage to show the value of the variable in the file of google maps, but in the program block of php! The instruction for entering the latitude and longitude, however, is in the HTML block. If I replace the values of the latitude and longitude by the variable $lat and $lng, I don't get to see the chart.
Can the variable be transferred from the PHP block to the HTML block?

HTML
// Initialize and add the map
function initMap() {
// The location of Houthalen

const Houthalen = { lat: 51.034991, lng: 5.386140 };
//const Logging = { lat= $lat, lng= $lng };


Do you have a solution or explanation for this?

francoisbeerten
Автор

Can you do that echo $_GET['name']; and we gonnna directly gonna have a result. Is it right?

ihabs
Автор

Hallo, could you show how it would work with Id's from mysql?

aArcziMetin
Автор

Why the ? is needed after destination.php

jbiswas
Автор

it says undefined variable str in source.php and the output is pretty haphazard.

NiyatiShah
Автор

why should we use " <?php echo $str; ?>" in the anchor tag of source.php ??
please do reply me... as soon as u can

nukasantosh
Автор

Help plz, I couldn't get a result, i tried many times and each time i get this msg,
Notice: Undefined index: name in C:\wamp\www\destination.php on line 12

kadiahzaman
join shbcf.ru