mudi Posted December 5, 2008 Share Posted December 5, 2008 How do i make that when they click the button its adds this code <img src="deleted so doesnt appear in google, yaho, etc"> I think is somewhere in these code $display .= '<tr><td colspan="2" align="center"><input type="submit" value="' . $lang[update_button] . '">'; if($ppl != "1"){ $display .= ' <a href="' . $delete_link . '" onclick="return confirmDelete()">' . $lang[admin_listings_editor_delete_listing] . '</a>'; } $display .= '</td></tr></table></form>'; $display .= '</td></tr></table>'; }else { $display .= '<center><span class="redtext">' . $lang['admin_listings_editor_invalid_listing'] . '</span></center>'; } } else { // show all the listings and some other coding here Quote Link to comment https://forums.phpfreaks.com/topic/135715-when-they-click-submit-button/ Share on other sites More sharing options...
Maq Posted December 5, 2008 Share Posted December 5, 2008 I assume you already have you form along with it's methods...? if(isset($_POST['subimt']) { echo ''; } Quote Link to comment https://forums.phpfreaks.com/topic/135715-when-they-click-submit-button/#findComment-707125 Share on other sites More sharing options...
Brian W Posted December 5, 2008 Share Posted December 5, 2008 Please clarify what you want... Here is my wild guess though: You want to add the line <img src="blabla.jpg"> to the $display variable? if so, $display .= '<img src="blabla.jpg">'; Quote Link to comment https://forums.phpfreaks.com/topic/135715-when-they-click-submit-button/#findComment-707126 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.