Thursday, 3 June 2010

display a list in portrait

Display a list in portrait
css

#content ul {
     list-style: none;
}

#content li {
     float: left;
}

---------------------------------------------------------------------
list-style:none means no marker is added at the each of list contents

Monday, 31 May 2010

a.php からb.php にvalueを$_getで飛ばす場合、"form" tag を使わなくてもイケルっぽいな

file - a.php

ここでremarkable point は “?” の使用。
The "?" question mark in this case has nothing to do with PHP at all. This is a format that the URL uses to seperate the URI path and defined parameters. The amperstand "&" is used to delimit each defined parameter key. The hash "#" is used at the end of an URL to assign the anchor point of the landing page.

http://www.domain.com/path/page.html?parameter1=value1&parameter2=value2#anchor

Color Key:
protocol
domain
path
file
parameter
value
anchor

つまり、file b.phpparameterの値(ここでは“id”となってるけど恐らくこれが “get” のparameter やな。 fileで何と定義するかによって違ってくるんだろうな)に $item_id を突っ込むぞ、anchorの“remove”を押したら って意味だな

ちなみに、従来の “?” の使用例は↓
count = $a > $b ? $b : $a;
is the same as the following code:
if ($a > $b)
count = $b;
else
count = $a;
で冒頭の &_get の話に戻って、file b.php で $_GET["id"] として”id” を取り出せるワケヨ。