K
K
Kulver_stukas2017-12-11 13:19:26
PHP
Kulver_stukas, 2017-12-11 13:19:26

Is it possible using Windows (or Punto Switcher) to set the language of the input field in the browser?

If there are many tabs open in the browser (specifically or in Chrome or Firefox)? Is it possible to block language switching in any particular input field? Better yet, force the input language to be set. For example for the address bar and form input field? By window title. At the same time, allowing switching in other bookmarks?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AUser0, 2019-09-29
@AUser0

However, very-very-super-noob, right?

<?php
// Файл firstsql.php
$host='localhost'; // имя хоста (уточняется у провайдера), и как правило используется 'localhost'
$database='__database_name__'; // имя базы данных, которую вы должны вписать вместо __database_name__
$user='__user_name__'; // заданное вами имя пользователя, его надо знать и вписать вместо __user_name__
$pswd='__user_password__'; // заданный вами пароль, его надо вписать вместо __user_password__
 
$dbh = mysql_connect($host, $user, $pswd) or die("Не могу соединиться с MySQL: ".mysql_error());
mysql_select_db($database, $dbh) or die("Не могу подключиться к базе: ".mysql_error($dbh));

//Идущие далее запросы УДАЛЯЮТ записи из таблиц,
//опустошают таблицы,
//вы ПОТЕРЯЕТЕ эти данные!!!!

$query ="SET foreign_key_checks = 0;TRUNCATE TABLE oc_product;TRUNCATE TABLE oc_product_attribute;TRUNCATE TABLE oc_product_description;TRUNCATE TABLE oc_product_discount;TRUNCATE TABLE oc_product_image;TRUNCATE TABLE oc_product_option;TRUNCATE TABLE oc_product_option_value;TRUNCATE TABLE oc_product_related;TRUNCATE TABLE oc_product_related;TRUNCATE TABLE oc_product_reward;TRUNCATE TABLE oc_product_special;TRUNCATE TABLE oc_product_to_category;TRUNCATE TABLE oc_product_to_download;TRUNCATE TABLE oc_product_to_layout;TRUNCATE TABLE oc_product_to_store;TRUNCATE TABLE oc_review;DELETE FROM oc_url_alias WHERE query LIKE 'product_id=%';TRUNCATE oc_category;TRUNCATE oc_category_description;TRUNCATE oc_category_path; TRUNCATE oc_category_to_store;TRUNCATE oc_category_to_layout;TRUNCATE oc_category_filter;";

foreach (explode(";", $query) as $q)
{
        mysql_query($q, $dbh) or die("Ошибка выполнения запроса: ".mysql_error($dbh));
}
?>

This text should be saved in the file " firstsql.php ", and in the browser open this file using a link like http://your-site-url/firstsql.php .

A
Anton Kiselyov, 2017-12-11
@zamboga

Is it possible to block language switching in any particular input field?

Forbid in the settings of Punto switcher'a to switch the layout "by pressing Tab and Enter", already the lion's share of problems will disappear.
+ autocorrect can help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question