justAnoob Posted September 25, 2011 Share Posted September 25, 2011 I want to add a text area to this so when an Administrator of the site clicks the refusal button, they will be able to type in a reason for the refusal. <?php echo '<a href="adminDeleteGoodie.php?delete_id=' . $delete_s_find . '" onClick="return confirm(\'Are you sure you want to delete ' . $makesure_s . ' from the Goodies Approval List? If so, please leave a reason for the upload being denied. NEED A TEXT AREA RIGHT HERE \');"><img src="images_new/remove.jpg" border="0" /></a>'; ?> Link to comment https://forums.phpfreaks.com/topic/247856-how-to-add-a-text-area-to-this/ Share on other sites More sharing options...
WebStyles Posted September 25, 2011 Share Posted September 25, 2011 not that simple, you can add a text area there, but then you'll need to change the javascript function to grab the text, send it to php, and change the php function to include that text into a database and send it to the user (by email ?) Link to comment https://forums.phpfreaks.com/topic/247856-how-to-add-a-text-area-to-this/#findComment-1272707 Share on other sites More sharing options...
justAnoob Posted September 25, 2011 Author Share Posted September 25, 2011 I'll just make a separate page for this then instead of the popup. Thanks. Link to comment https://forums.phpfreaks.com/topic/247856-how-to-add-a-text-area-to-this/#findComment-1272708 Share on other sites More sharing options...
WebStyles Posted September 25, 2011 Share Posted September 25, 2011 actually, you're calling 'adminDeleteGoodie.php' to process the request, so that's the only other thing you have to change. Link to comment https://forums.phpfreaks.com/topic/247856-how-to-add-a-text-area-to-this/#findComment-1272709 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.