cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount cheap michael kors purse michael kors handbags discount
cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount cheap michael kors purse michael kors handbags discount
formvars.php
  le variabili delle forms

  forms

  • <form action="action1.php" method="POST">
    Your name: <input type=text name=name>
    You age: <input type=text name=age size=2>
    <input type=submit value="vai!"></form>

  • Hi <? echo $name ?>. You are <? echo $age ?> years old.

  checkboxes

  • si usa una variabile stringa, con funzioni di SET datatype (elenco separato da virgole)
  • <FORM><INPUT TYPE=checkbox NAME=PET_ARRAY[] value=dog> Dog
    <INPUT TYPE=checkbox NAME=PET_ARRAY[] value=cat> Cat
    <INPUT TYPE=checkbox NAME=PET_ARRAY[] value=fish> Fish
    </FORM>
  • if ($PET_ARRAY){
    $PET = implode($PET_ARRAY, ",");
    $result = mysql_query ("UPDATE dbname SET PET = '$PET'");
    if(!$result) { echo "UPDATE unsuccessful: ", mysql_error(); exit;}
    }
  • in ricerca su un SET datatype, ricordarsi le wildcards:
    SELECT * FROM dbname WHERE PET LIKE '%$PET%';

  select multiple

  • <FORM>What pets do you have? <SELECT NAME=PET_ARRAY[] size=5 multiple> <option>Dog<option>Cat<option>Fish<option>Kangaroo<option>Ptarmigan <option>3-Toed <ption>Lemur<option>Narwhal</select></FORM>
  • i tasti SHIFT e CTRL abilitano la scelta miltipla, ma molti non lo sanno: usare i checkbox, che sono pi� intuitivi