Forum Moderators: coopster
$codcliente = $_POST['Field1'];
if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "Form2")) {
$insertSQL = sprintf("INSERT INTO Table2 (CodPrograma, CodTipoSuscripcion, CodCliente) VALUES (%s, %s, %s)",
GetSQLValueString(substr($HTTP_POST_VARS['Field2'], 0, 3), "text"),
GetSQLValueString(substr($HTTP_POST_VARS['Field3'], 3), "text"),
$codcliente);
But this doesn't work. So I thought that I can assign the variable value to a new field in the form and then insert it to the Table2 as usually, but I want to hide this field.
The other solution could be to asign the value to a session variable and insert it. But how to insert a session variable in a table?.
Please HELP ME!
thanks a lot