Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
if (isset($_GET['myvar'])) {
echo "My Variable is: ". $_GET['myvar'] ."<br />\n";
} else {
// (preserve the original query string
// -- post variables will need to handled differently)
echo "<script language='javascript'>\n";
echo
location.href="<? echo $_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'].'&myvar='?>"+variable;
}
?>