index.php
Cytat
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
<link href="styl.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form method="post" action="#">
<input type="text" name="kolor" />
<input type="submit" name="ok"/>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>
<link href="styl.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form method="post" action="#">
<input type="text" name="kolor" />
<input type="submit" name="ok"/>
</form>
</body>
</html>
styl.css
Cytat
@charset "utf-8";
body {
background-color: '. $_POST["kolor"] .';
width: 100%;
height: 100%;
}
body {
background-color: '. $_POST["kolor"] .';
width: 100%;
height: 100%;
}
nie pokazuje mi błędów w operze, ale po wpisaniu wartości też nic się nie dzieje. Może dla was to wydać się dziecinnie proste, ale mi pomoc teraz by się sprzydała. POZDRO