I am using PHP 5.5. I would like to add a inputbox to an existing form. This is my first time modifying any code in PHP. I was hoping for some input so I don't mess it up. I would like to add a group 3 input box below where the current group 2 box is.
Any help is appreciated
Tom
Current Code
I am thinking that the following code might work below where the code is Blue up above. But what would I change so the group 3 button goes below the group 2 input box? Also I have two other input boxes below the group 2 input box would those get automatically reformatted?
Any help is appreciated
Tom
Current Code
Code:
odbc_free_result($get_f2);
$sel_f2.= "</select>";
// Build Form
$display_block="<p align='center'><b><font color=000080>EDIT REPORT - GROUPED</font></b></p>
<form method='post' action='".$_SERVER['PHP_SELF']."?cl=".$clid."&id=".$rptqid."'>
<p align='center'><table width='95%' cellpadding='3' cellspacing='3' border='0'>
<tr><td width='15%' align='right' valign='top'><b><font color='000080'>REPORT:</font></b></td>
<td width='35%' align='left' valign='top'><b><font color='000080'>".$r_rdsc."</font></b></td>
<td width='15%' align='right' valign='top'><b><font color='000080'>TAB:</font></b></td>
<td width='35%' align='left' valign='top'><input type='text' name='ztab' size='35' maxlength='25' value='".$r_tab."'></td></tr>
<tr><td width='15%' align='right' valign='top'><b><font color='000080'>TITLE:</font></b></td>
<td colspan='3' align='left' valign='top'><input type='text' name='zttl' size='110' maxlength='100' value='".$r_ttl."'></td></tr>
<tr><td width='15%' align='right' valign='top'><b><font color='000080'>SUBTITLE:</font></b></td>
<td colspan='3' align='left' valign='top'><input type='text' name='zstl' size='110' maxlength='100' value='".$r_stl."'></td></tr>
<tr><td width='15%' align='right' valign='top'><b><font color='000080'>GROUP 1:</font></b></td>
<td width='35%' align='left' valign='top'>".$sel_g1."</td></tr>
[Blue] <td width='15%' align='right' valign='top'><b><font color='000080'>GROUP 2:</font></b></td>
<td width='35%' align='left' valign='top'>".$sel_g2."</td></tr> [/Blue]
<tr><td width='15%' align='right' valign='top'><b><font color='000080'>FILTER 1:</font></b></td>
<td width='35%' align='left' valign='top'>".$sel_f1."</td></tr>
<td width='15%' align='right' valign='top'><b><font color='000080'>FILTER 2:</font></b></td>
<td width='35%' align='left' valign='top'>".$sel_f2."</td></tr>
<tr><td colspan='4' align='center' valign='bottom'><input type='submit' name='submit' value='UPDATE REPORT'></td></tr>
</table></p></form>";
} else { // Process
if((isset($_POST['ztab'])) && (trim($_POST['ztab'])!='')
&& (isset($_POST['zttl'])) && (trim($_POST['zttl'])!='')) { // Required Fields
if((ChkTabUnique($rptsqlcn,$clid,$_POST['ztab'],$rptqid)==0)
and (strlen($_POST['ztab'])<31)) { // Check to be sure tab unique and within length limit
// Get Posted Data
$nw_tab=($_POST['ztab']); // Function to fix tab names
$nw_ttl=FixPostText($_POST['zttl']);
$nw_stl=FixPostText($_POST['zstl']);
$nw_g1=$_POST['zgr1'];
if($nw_g1==1) { // No primary group, can't have secondary group
$nw_g2=1;
} else {
$nw_g2=$_POST['zgr2'];
}
$nw_f1=$_POST['zfl1'];
if($nw_f1==1) { // No primary filter, can't have secondary filter
$nw_f2=1;
} else {
$nw_f2=$_POST['zfl2'];
}
I am thinking that the following code might work below where the code is Blue up above. But what would I change so the group 3 button goes below the group 2 input box? Also I have two other input boxes below the group 2 input box would those get automatically reformatted?
Code:
<td width='15%' align='right' valign='top'><b><font color='000080'>GROUP 3:</font></b></td>
<td width='35%' align='left' valign='top'>".$sel_g2."</td></tr>