HTML beginner |
|
<select name="category" class="text" id="category">
<option value="domme blondjes">Domme blondjes</option>
<option value="dokter">Dokter</option>
<option value="school">School</option>
<option value="hollanders">Hollanders</option>
<option value="toppunten">Toppunten</option>
<option value="dieren">Dieren</option>
<option value="jantje">Jantje</option>
</select>
$query="INSERT INTO naamoption (title, joke) VALUES ('$_POST[title]', '$_POST[joke]')";
<select name="category" class="text" id="category"> <option value="domme blondjes">Domme blondjes</option> <option value="dokter">Dokter</option> <option value="school">School</option> <option value="hollanders">Hollanders</option> <option value="toppunten">Toppunten</option> <option value="dieren">Dieren</option> <option value="jantje">Jantje</option> </select> $query="INSERT INTO naamoption (title, joke) VALUES ('$_POST[title]', '$_POST[joke]')";
Hoe moet ik ervoor zorgen dat de mop in de geselecteerde optie(ook naam van database) gepost wordt?;-)
|