Jump to content


This topic is now archived and is closed to further replies.


Update from form to MySQL database

Recommended Posts

Here is my code:




@mysql_select_db($database) or die( "Kan de databank niet selecteren!");

$query = "INSERT INTO login VALUES ('','$loginnaam','$paswoord','$voornaam','$naam',' $adres','$email')";

$query="SELECT * FROM login";



echo "<b><center>Overzicht leden</center></b><br><br>";

while ($i < $num) {


echo " Loginnaam: $loginnaam Paswoord: $paswoord Voornaam: $voornaam Naam: $naam Adres: $adres E-mail: $email";



And here is the code of my little form:

<form method="post" action"insert.php">

<table width="50%" border="0">
<td><input type="text" name="txtVoornaam"></td>
<td><input type="text" name="txtNaam"></td>
<td><input type="text" name="txtAdres"></td>
<td><input type="text" name="txtLoginnaam"></td>
<td><input type="text" name="txtPaswoord"></td>
<td><input type="text" name="txtEmail"></td>
<input type=submit name="cmdOpslaan" value="Verzenden">

I don't know what's wrong. But it just don't works...

Thx allready...

Share this post

Link to post
Share on other sites
Its pretty helpful when you say it doesn't works! Do you get any errors while running the code? Whats parts dont work? Whats the script supposed to do?

Helps if you provide a few more details about your probelm rather than posting code and day it doesn't works!

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.