Per essere di aiuto, con la proposta di "telegio" il codice funzionante rimarebbe così
codice:
<form id="form1" name="form1" method="post" action="_.php">
<label>Argomento da lista <select name="argomento" id="argomento">
<option value=""selected="selected">Scegliere</option>
<option value="a">a</option>
<option value="b">b</option>
</select> </label>
<label>Nuovo argomento<input name="argomento2" type="text" id="argomento2" /> </label> <input type="submit" name="Submit" value="vai" /> </form>
Codice PHP:
if ($_POST['chiave2'] != '') {
$argomento = $_POST['argomento2'];
} else {
$argomento = $_POST['argomento'];
}
$insertSQL = "INSERT INTO mia_tabela (argomento) VALUES (%s)", GetSQLValueString($argomento, "text");