Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> php i html, nie wyskakują mi style wielkość tekstu
ironmaiden666
post 20.08.2007, 21:47:20
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
Exek
post 20.08.2007, 22:09:05
Post #2





Grupa: Zarejestrowani
Postów: 120
Pomógł: 10
Dołączył: 16.08.2007

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


Cytat(ironmaiden666 @ 20.08.2007, 22:47:20 ) *
print “<div style = $theStyle>”;


niepotrzebne spacje?
print “<div style=$theStyle>”;
Go to the top of the page
+Quote Post
ironmaiden666
post 21.08.2007, 17:25:17
Post #3





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
Grzyw
post 21.08.2007, 17:27:43
Post #4





Grupa: Zarejestrowani
Postów: 561
Pomógł: 75
Dołączył: 19.08.2004
Skąd: Wrocław

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


Zedytuj Twój post i wsadź fragmenty kodu z znaczniki [HTML] [PHP] bo ciężko jest się rozczytać.


--------------------
Idąc po czyichś śladach, nie zajdziesz ani kroku dalej...
Go to the top of the page
+Quote Post
Fixus
post 21.08.2007, 19:51:47
Post #5





Grupa: Zarejestrowani
Postów: 295
Pomógł: 9
Dołączył: 8.02.2006

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


jak kolega wyżej...zedytuj bo jest syf

i zrób tak:
Kod
print “<div style = '$theStyle'>”;
Go to the top of the page
+Quote Post
ironmaiden666
post 21.08.2007, 22:37:11
Post #6





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

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


no rzeczywiscie lepiej dzieki
Go to the top of the page
+Quote Post
ironmaiden666
post 22.08.2007, 11:47:15
Post #7





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

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


proszę o pomoc to dla mnie ważne!!!
tylko tu dowiem sie to co chcę
Go to the top of the page
+Quote Post
Fixus
post 22.08.2007, 12:14:17
Post #8





Grupa: Zarejestrowani
Postów: 295
Pomógł: 9
Dołączył: 8.02.2006

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


no sam powiedziałeś, że lepiej
Go to the top of the page
+Quote Post
ironmaiden666
post 22.08.2007, 12:41:06
Post #9





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

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


lepiej ze to w formie kodu!
a nadal nie wiem co zrobić
Go to the top of the page
+Quote Post
Fixus
post 22.08.2007, 13:28:27
Post #10





Grupa: Zarejestrowani
Postów: 295
Pomógł: 9
Dołączył: 8.02.2006

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


a poprawiłeś linijke na tą?
Kod
print “<div style = '$theStyle'>”;
Go to the top of the page
+Quote Post
ironmaiden666
post 22.08.2007, 17:19:50
Post #11





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

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


tak i nic
Go to the top of the page
+Quote Post
wrzasq
post 22.08.2007, 17:39:03
Post #12





Grupa: Zarejestrowani
Postów: 206
Pomógł: 18
Dołączył: 6.03.2006
Skąd: Szczecin

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


wklej kod, jaki otrzymuje przegladarka po przetworzeniu PHP, bedzie widac w ktorym miejscu jest cos nie tak. i nie pisz ciagle co kilka sekund, nie zachecasz innych do pomagania tobie takim egoistycznym zachowaniem.


--------------------
Go to the top of the page
+Quote Post
ironmaiden666
post 22.08.2007, 21:34:36
Post #13





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

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


Kod
<html>
<head>
<title>Your Output</title>
</head>
<body>
<h1>Your Output</h1>
<center>
<div style = "border-width:;
border-style:;
border-color:green">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.
</span></center>
</body>
</html>
Go to the top of the page
+Quote Post
bronchos
post 22.08.2007, 22:07:19
Post #14





Grupa: Zarejestrowani
Postów: 25
Pomógł: 0
Dołączył: 16.03.2007

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


A może by tak:

  1. <?php
  2.  
  3. $theStyle = 'border-width:'.$_POST['borderSize'].$_POST['sizeType'].';';
  4. $theStyle.= 'border-style:'.$_POST['borderStyle'].';border-color:green;';
  5.  
  6. ?>


Pociąłem na dwie linijki, bo się forum rozciągało...

Ten post edytował bronchos 22.08.2007, 22:09:14
Go to the top of the page
+Quote Post
ironmaiden666
post 22.08.2007, 22:54:25
Post #15





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

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


chyba to zostawię bo to za trudne
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 8.07.2025 - 03:33