Hey,
Ik zit met een probleempje
Ik heb een simpel form, en als iemand op submit kikt, check ik met isset($_POST[musart]) of hij bestaad.
Maar dan zegt hij dus altijd niet.
Ik heb dit:
De artiesten worden trouwens wel goed weergegeven.
Met in value="" het id.
Wat doe ik fout
?
Bedankt,
Wouter(r).
Ik zit met een probleempje
Ik heb een simpel form, en als iemand op submit kikt, check ik met isset($_POST[musart]) of hij bestaad.Maar dan zegt hij dus altijd niet.
Ik heb dit:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<select naam="musart" id="musart">[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$artiest_query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM artiesten WHERE accepted = 1"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$artiest[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$artiest_query[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<option value="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$artiest[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$artiest[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</option>[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] </select>[/COLOR][COLOR= #007700];[/COLOR]
?> De artiesten worden trouwens wel goed weergegeven.
Met in value="" het id.
Wat doe ik fout
?Bedankt,
Wouter(r).

