Alith7
07-16-2009, 05:45 PM
I have a basic insert form to add items to a product database. It opens as a pop-up window from a different form so that my sales reps can add items to the database if they are not there without having to back track. I want to have a close window option for when they are done.
here is what I have so far:
<body>
<div id="wrapper">
<div id="titlebar"><img src="images/header.jpg" alt="Graphic Edge Printing" /></div>
<div id="maincontent">
<div id="nav">
<?php include('navbar.php'); ?>
</div>
<h1 align="center">Sheet Size Insert </h1>
<p align="center">Check the list below, if the sheet size you would like to use is not listed, please add it. </p>
<form action="<?php echo $editFormAction; ?>" id="Press" name="Press" method="POST">
<table width="457" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td width="128"><div align="right">Sheet Size : </div></td>
<td width="189"><input type="text" name="SheetDesc" /></td>
<td width="128"><center><input name="Add Size" type="submit" id="Add Size" value="Add Size" />
</center></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="Press">
</form>
<p align="center"> </p>
<table width="200" border="1" cellspacing="0" cellpadding="2" align="center">
<tr>
<th scope="col">Sheet Size Options </th>
</tr>
<?php do { ?>
<tr>
<td><div align="center"><?php echo $row_SheetSize['SheetDesc']; ?></div></td>
</tr>
<?php } while ($row_SheetSize = mysql_fetch_assoc($SheetSize)); ?>
</table>
<p>
<input name="button" type="button" onclick="window.close()" value="Close Window" />
</p>
</div>
<div id="footer"><?php include('copyright.php'); ?></div>
</div>
</body>
but the close window button doesn't work. any ideas?
here is what I have so far:
<body>
<div id="wrapper">
<div id="titlebar"><img src="images/header.jpg" alt="Graphic Edge Printing" /></div>
<div id="maincontent">
<div id="nav">
<?php include('navbar.php'); ?>
</div>
<h1 align="center">Sheet Size Insert </h1>
<p align="center">Check the list below, if the sheet size you would like to use is not listed, please add it. </p>
<form action="<?php echo $editFormAction; ?>" id="Press" name="Press" method="POST">
<table width="457" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td width="128"><div align="right">Sheet Size : </div></td>
<td width="189"><input type="text" name="SheetDesc" /></td>
<td width="128"><center><input name="Add Size" type="submit" id="Add Size" value="Add Size" />
</center></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="Press">
</form>
<p align="center"> </p>
<table width="200" border="1" cellspacing="0" cellpadding="2" align="center">
<tr>
<th scope="col">Sheet Size Options </th>
</tr>
<?php do { ?>
<tr>
<td><div align="center"><?php echo $row_SheetSize['SheetDesc']; ?></div></td>
</tr>
<?php } while ($row_SheetSize = mysql_fetch_assoc($SheetSize)); ?>
</table>
<p>
<input name="button" type="button" onclick="window.close()" value="Close Window" />
</p>
</div>
<div id="footer"><?php include('copyright.php'); ?></div>
</div>
</body>
but the close window button doesn't work. any ideas?