Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> php i html, nie wyskakują mi style wielkość tekstu
ironmaiden666
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 20.08.2007

Ostrzeżenie: (0%)
-----


mam plik borderMaker.html. Oto on:


Kod
<html>
<head>
<title>Font Choices</title>
</head>
<body>
<center>
<h1>Font Choices</h1>
<h3>Demonstrates how to read HTML form elements</h3>
<form method = “post”
action = “borderMaker.php”>
<h3>Text to modify</h3>
<textarea name = “basicText”
rows = “10”
cols = “40”>
Four score and seven years ago our fathers brought forth on this
continent a new nation, conceived in liberty and dedicated to the
proposition that all men are created equal. Now we are engaged in a
great civil war, testing whether that nation or any nation so
conceived and so dedicated can long endure.
</textarea>
<table border = 2>
<tr>
<td><h3>Border style</h3></td>
<td colspan = 2><h3>Border Size</h3></td>
</tr>
<tr>
<td>
<select name = borderStyle>
<option value = “ridge”>ridge</option>
<option value = “groove”>groove</option>
<option value = “double”>double</option>
<option value = “inset”>inset</option>
<option value = “outset”>outset</option>
</select>
</td>
<td>
<select size = 5
name = borderSize>
<option value = “1”>1</option>
<option value = “2”>2</option>
<option value = “3”>3</option>
<option value = “5”>5</option>
<option value = “10”>10</option>
</select>
</td>
<td>
<input type = “radio”
name = “sizeType”
value = “px”>pixels<br>
<input type = “radio”
name = “sizeType”
value = “pt”>points<br>
<input type = “radio”
name = “sizeType”
value = “cm”>centimeters<br>
<input type = “radio”
name = “sizeType”
value = “in”>inches<br>
</td>
</tr>
</table>
<input type = “submit”
value = “show me”>
</form>
</center>
</body>
</html>



Tu wszystko gra. oczywiście cudzysłowia są inne niż tu (tak po prostu kopiuje)

mam plik borderMaker.php


Kod
<html>
<head>
<title>Your Output</title>
</head>
<body>
<h1>Your Output</h1>
<center>
<?
$theStyle = <<<HERE
“border-width:$borderSize$sizeType;
border-style:$borderStyle;
border-color:green”
HERE;
print “<div style = $theStyle>”;
[font="Arial Black"][size=4]print $basicText;[/size][/font]
print “</span>”;
?>
</center>
</body>
</html>


to jest z książki php absolute beginner 2004

poprawiłem w tym drugim pliku na print $_POST["basicText"];
zeby w ogóle coś wyskoczyło ale tego tekstu mi nie zmienia daję różne opcje a on dalej taki sam[code][/code]

Ten post edytował ironmaiden666 21.08.2007, 22:35:58
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ironmaiden666
post
Post #2





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 20.08.2007

Ostrzeżenie: (0%)
-----


kurcze nic z tego to nie spacje
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 16:56