Heey!
Mijn vraag is of het mogelijk is om een soort van "shoutbox" te maken zonder MySQL?
Zoja, hoe?
Alvast bedankt voor de hulp!
Jos
Vraag 2!
Weet iemand waarom het volgende niet werkt? (Als er geen e-mail is ingevuld gaat het nog steeds door met het uitvoeren, en er staat al: Er is geen naam ingevuld als ik alleen al naar de pagina ga)
Zoja, hoe?
Alvast bedankt voor de hulp!
Jos
Vraag 2!
Weet iemand waarom het volgende niet werkt? (Als er geen e-mail is ingevuld gaat het nog steeds door met het uitvoeren, en er staat al: Er is geen naam ingevuld als ik alleen al naar de pagina ga)
<FORM METHOD="POST" ACTION="">
<TABLE BORDER="0">
<TR>
<TD>Je naam:</TD>
<TD>
<INPUT TYPE="TEXT" NAME="name" SIZE="30px" />
</TD>
</TR>
<TR>
<TD>Verzoeknummer:</TD>
<TD><INPUT TYPE="TEXT" NAME="vzknr" SIZE="30px" value="bijv. Rick Ross - Speedin" /></TD>
</TR>
<TR>
<TD>Je e-mail adres:</TD>
<TD><INPUT TYPE="TEXT" NAME="email" SIZE="30px" /></TD>
</TR>
</TABLE>
<P><INPUT TYPE="SUBMIT" VALUE="Insturen!" NAME="toevoegen"></P>
</FORM>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #FF8000]//Er is geen naam ingevuld[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je bent je naam vergeten![/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/elseif"]elseif[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]vzknr[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #FF8000]//Er is geen verzoeknummer ingevuld[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt geen verzoeknummer ingevuld![/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #FF8000]//Er is geen email ingevuld[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt geen e-mail adres ingevuld![/COLOR][COLOR= #007700];
}
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[COLOR= #FF8000]//Query[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]config.php[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$insert[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"INSERT INTO verzoeknummer(name,vzknr,email) VALUES("[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]","[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]vzknr[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]","[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]]);[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR] [COLOR= #0000BB]$insert[/COLOR] [COLOR= #007700]);
}[/COLOR]
?> 


(Degene die je op regel 3/4 opende sloot je niet af op het eind?)