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>'; ?> Quote 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 ?) Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.