ok sorry for my english ... it's cause i'm a french.
First of all, thank u to take some of your time to help me.
What i have to do is to create an application (different form) for my client to allow him to create his own form for his customer.
So the form that i'm trying to build is to allow my client to personnalize his own form.
I hope u understand.
So now, my problem is that inside my form, i allow my client to write word (ex. store name) and with this word, the script will create a dropdown list. So this way, my client have the choice to create a dropdownlist or not. If he select to create it, he can customize his own dropdown list.
if($storeActive = "Yes") { // Select to create a dropdown list
$sql = "INSERT INTO f".$clientRef." // Session Var for tablename(formType,formName,formQuestion) VALUES('aInfo','storeActive','".$storeActive."')";
$result = mysql_query($sql,$db) or die(mysql_error());
foreach ($storeList as $value) { // each textfield filled by my client
$sql = "INSERT INTO f".$clientRef." (formType,formName,formValue) VALUES('aInfo','storeList[".$storeNumber."]','".$value."')";
$result = mysql_query($sql,$db) or die(mysql_error());
$storeNumber++;
}
}
now, it work well but i've got 15 textfield .... the prob is that whatever my client filled 3, 6, 8 ... textfield ... it always create 15 rows inside my db .
If you don't understand .... tell me and i'll try to explain it to you again
Steve