<option <?= $_SESSION['AAA'] ?> value="CCC" >CCCCCCCCC</option>
foreach ($_POST['docs'] as $v ){
$_SESSION[$v] = 'SELECTED';
echo "SESSION['{$v}'] = ".$_SESSION[$v]."<br>";
}
<input type="text" value="some value">
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
//Отображение списка "Производители"
$query = 'SELECT distinct(Proizv) FROM table1 WHERE Proizv <> "" ORDER BY Proizv ASC';
$Proizvod = mysql_query ($query) or die(mysql_error());
//Выборка по Производителю, но что-то не работает.
if(isset($_POST['maker'])){
$fam = "SELECT * FROM table1 WHERE Proizv ='".mysql_real_escape_string($_POST['maker'])."'";
$fam2 = mysql_query($fam)or die(mysql_error());
}
RewriteEngine on
RewriteBase /
RedirectMatch 403 /\..*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !.html$
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/libs # <-------
RewriteRule (.+) $1/ [R=301,L]
RewriteCond %{REQUEST_URI} !^/libs # <-------
RewriteRule . index.php
RewriteCond %{HTTP_HOST} ^www.site.ru$ [NC]
RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L]