$('#form-collection1').on('submit', function() {
// открываем модальное окно бутстрапа
$('#modal_collection_one').modal('hide');
$('#modal_collection_two').modal('show');
// делаем еще что-нибудь
return false;
});
echo header('location:/ya.ru');
Header("Status: 302 Moved");
Header("Location: htpp://site.com/xx.html");
<?php
require_once("./geo/ipgeobase.php");
header('Content-type: text/html;charset=windows-1251');
$gb = new IPGeoBase();
$ip = $_SERVER['REMOTE_ADDR']?:($_SERVER['HTTP_X_FORWARDED_FOR']?:$_SERVER['HTTP_CLIENT_IP']);
$data = $gb->getRecord($ip);
echo $data['city'] ;
$price = 2000000000;
if ($data['city'] == 'Нижний Новгород')echo $price;
//var_dump($data);
//echo json_encode( $data );
?>
XMLHttpRequest cannot load https://www.yandex.ru/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://lp.olprime.ru' is therefore not allowed access.