Jump to content

need help on check box delete


pixeltrace

Recommended Posts

guys,

i need help, i have a form with a checkbox that has a delete button.
my problem is the confirmation page is not working right. the error message is
page cannot be found
this is the code for the form

[code]<table border="0" cellpadding="0" cellspacing="0" bordercolor="0">
                <tr>
                  <td width="364"><img src="../images/spacer.gif" width="13" height="10" /></td>
                </tr>
               
                <tr>
                  <td bgcolor="#A2330F"><img src="../images/spacer.gif" width="13" height="2" /></td>
                </tr>
                <tr>
                  <td><img src="../images/spacer.gif" width="13" height="15" /></td>
                </tr>
                <tr>
                  <td align="right" valign="top"><form action="emailtdelete.php" method="post" name="frmemail" id="frmemail">
  <?
include '../db_connect2.php';

//query Start
$uSql = "SELECT UserID, full_name, company, email FROM emailadd ORDER by UserID DESC";
$uResult = mysql_query($uSql, $connection);
if(!$uResult){
echo 'no data found';
}
else{
while($uRow = mysql_fetch_row($uResult)){
//query end
?>
 
                    <table width="635" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td colspan="14" align="right" class="bodytext"><span class="bodytext3"><img src="../images/spacer.gif" width="10" height="10" />&nbsp;&nbsp;</span></td>
                      </tr>
                      <tr>
                        <td width="10"><img src="../images/spacer.gif" width="10" height="10" /></td>
                        <td width="51" class="bodytext3">email id: </td>
                        <td width="10"><img src="../images/spacer.gif" width="10" height="10" /></td>
                        <td width="51" class="bodytext"> <?= $uRow[0]?></td>
                        <td width="10" class="bodytext"><img src="../images/spacer.gif" width="10" height="10" /></td>
                        <td bgcolor="#E14B19" class="bodytext"><img src="../images/spacer.gif" width="2" height="10" /></td>
                        <td width="202" class="bodytext">&nbsp;<?= $uRow[1]?></td>
                        <td width="1" bgcolor="#E14B19" class="bodytext"><img src="../images/spacer.gif" width="1" height="11" /></td>
                        <td width="185" class="bodytext">&nbsp;<?= $uRow[2]?></td>
                        <td bgcolor="#A2330F" class="bodytext">&nbsp;</td>
                        <td colspan="4" class="bodytext">&nbsp;</td>
                        </tr>
                      <tr>
                        <td colspan="5" align="right" class="bodytext">&nbsp;</td>
                        <td width="1" align="right" bgcolor="#E14B19" class="bodytext"><img src="../images/spacer.gif" width="1" height="10" /></td>
                        <td colspan="3" class="bodytext">&nbsp;<?= $uRow[3]?></td>
                        <td width="1" align="right" bgcolor="#A2330F" class="bodytext"><img src="../images/spacer.gif" width="1" height="10" /></td>
                        <td width="20" align="right" class="bodytext"><input type="checkbox" name="eid"value="<?= $uRow[0]?>"></td>
                        <td width="10" align="right" class="bodytext"><img src="../images/spacer.gif" width="10" height="10" /></td>
                        <td width="52" align="right" class="bodytext"><input name="delete2" type="submit" value="Delete" onclick="return confirmSubmit()" /></td>
                        <td width="29" align="right" class="bodytext"><img src="../images/spacer.gif" width="20" height="10" /></td>
                      </tr>
                      <tr>
                        <td colspan="14" align="right" class="bodytext"><img src="../images/spacer.gif" width="10" height="10" /></td>
                      </tr>
                      <tr>
                        <td colspan="14" align="right" bgcolor="#E14B19" class="bodytext"><img src="../images/spacer.gif" width="1" height="1" /></td>
                      </tr>
                    </table>
      <?
  }
}
?>
                  </form></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table>[/code]



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.