Gruzin Posted September 4, 2006 Share Posted September 4, 2006 hi guys,I'am trying to add [b]confirm[/b] function to my php echo, but think it's not correct. Please tell me what's wrong with it? Thanks in advance.[code]echo "<a href=".$delete."onClick='return confirm('are u sure?');'>Delete</a>";[/code] Quote Link to comment https://forums.phpfreaks.com/topic/19676-quick-syntax-question/ Share on other sites More sharing options...
wildteen88 Posted September 4, 2006 Share Posted September 4, 2006 Use double quotes:[code]echo "<a href=\"" . $delete . "\" onClick=\"return confirm('are u sure?');\">Delete</a>";[/code] Quote Link to comment https://forums.phpfreaks.com/topic/19676-quick-syntax-question/#findComment-85776 Share on other sites More sharing options...
Gruzin Posted September 4, 2006 Author Share Posted September 4, 2006 Thank you very much ;) Quote Link to comment https://forums.phpfreaks.com/topic/19676-quick-syntax-question/#findComment-85779 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.