pixeltrace Posted November 3, 2006 Share Posted November 3, 2006 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 foundthis 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" /> </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"> <?= $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"> <?= $uRow[2]?></td> <td bgcolor="#A2330F" class="bodytext"> </td> <td colspan="4" class="bodytext"> </td> </tr> <tr> <td colspan="5" align="right" class="bodytext"> </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"> <?= $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> </td> </tr> </table>[/code] Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/ Share on other sites More sharing options...
jpratt Posted November 3, 2006 Share Posted November 3, 2006 is your page that can not be found called emailtdelete.php? does it have a t in it? Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119280 Share on other sites More sharing options...
pixeltrace Posted November 3, 2006 Author Share Posted November 3, 2006 yes and and this is the code for my confirmation pagehttp://www.sinagtala.net/emaildelete.phpswhats wrong on my codes? Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119290 Share on other sites More sharing options...
jpratt Posted November 3, 2006 Share Posted November 3, 2006 I think <?= $uRow[0]?> should look like <? echo $uRow[0]; ?> Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119299 Share on other sites More sharing options...
thepip3r Posted November 3, 2006 Share Posted November 3, 2006 [quote]yes and and this is the code for my confirmation pagehttp://www.sinagtala.net/emaildelete.phpswhats wrong on my codes?[/quote]if this link is accurate.. ur problem is simple... in ur code, ur calling emailTdelete.phps instead of emaildelete.phps Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119301 Share on other sites More sharing options...
pixeltrace Posted November 3, 2006 Author Share Posted November 3, 2006 thats not the original link of my emaildelete.phpi just renamed it so u can see the code.the emaildelete.php and my formpage is located in a different folder Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119304 Share on other sites More sharing options...
pixeltrace Posted November 3, 2006 Author Share Posted November 3, 2006 i already replaced <?= $uRow[0] ?>with this <? echo $uRow[0]; ?>but it still didnt work.what else is wrong on my codes? Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119308 Share on other sites More sharing options...
pixeltrace Posted November 3, 2006 Author Share Posted November 3, 2006 this is the code for my formhttp://www.sinagtala.net/emailview.phpsand this is the code for my delete confirmation pagehttp://www.sinagtala.net/emaildelete.phps Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119311 Share on other sites More sharing options...
jpratt Posted November 3, 2006 Share Posted November 3, 2006 you said your code page is emaildelete.php not emailtdelete.php correct? Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119313 Share on other sites More sharing options...
pixeltrace Posted November 3, 2006 Author Share Posted November 3, 2006 yes.the codes of the 2 page is herehttp://www.sinagtala.net/emailview.phpsandhttp://www.sinagtala.net/emaildelete.phps Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119327 Share on other sites More sharing options...
jpratt Posted November 3, 2006 Share Posted November 3, 2006 Your code is <form action="emailtdelete.php" should that be "><form action="emaildelete.php" Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119333 Share on other sites More sharing options...
thepip3r Posted November 3, 2006 Share Posted November 3, 2006 isn't that what i said before???? Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119373 Share on other sites More sharing options...
jpratt Posted November 4, 2006 Share Posted November 4, 2006 Yeah its also why I asked what I did on the first reply. :) Link to comment https://forums.phpfreaks.com/topic/26093-need-help-on-check-box-delete/#findComment-119418 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.