Hi, all
I've got a question. I'm using a flash form with input text fields "NaamTxt" and "WoonplaatsTxt" and a submit button when it' s pressed it does post to a PHP page with the following code:
<?
$Naam=$HTTP_GET_VARS["NaamTxt"];
$Woonplaats=$HTTP_GET_VARS["WoonplaatsTxt"];
$db = 'C:\post\db.mdb';
$conn = new COM('ADODB.Connection');
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=$db");
$sql="INSERT INTO Gegevens (Naam, Woonplaats) Values ('".str_replace("'","''",$Naam)."','".str_replace("'","''",$Woonplaats)."')";
$rs = $conn->Execute($sql);
?>
<?
$rs->Close();
$conn->Close();
?>
As you can see it stores it' s form data in an ACCESS database, but when the submit button is pressed an empty string is send to the database resulting in no data. The post works fine cause the autoincresement in the database adds an extra record (but an empty one 😕 )
Can anybody please help me out