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 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 ''; } 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">'; 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
Archived
This topic is now archived and is closed to further replies.