form processing
Posted: Thu Aug 24, 2006 6:50 pm
hi, heres the issue: i have multiple forms which all have a few common fields but each form has a few distinct fields. i would like to have only one page to process the forms but the sql for each form is different, so i thought i'd pass the sql for each form along with it in a hidden input.
(i extract $_POST so i can use the short variables) the problem is, it dosent load the variables on the processing page - they stay blank. any ideas?[/list]
Code: Select all
<?php
$sql1="insert into $table (id, title, date, short_desc) values('$id1','$title','$date','$short')";
?>
<input type="hidden" name="sql" value="<?php echo $sql1; ?>">