dmaru09 Posted June 23, 2009 Share Posted June 23, 2009 Alright, I know in PHP when you echo and want to write in HTML you can normally use a ' to replace a ". However I am running into a problem. echo " <INPUT TYPE=SUBMIT VALUE='Submit CR' onClick='return confirm('Changing an existing')' > "; Does not seem to produce the correct output. It works as a button, but no conformation comes up. The normal format for this input would be: echo " <INPUT TYPE=SUBMIT VALUE='Submit CR' onClick="return confirm('Changing an existing')" > "; Any ideas how to fix this? Link to comment https://forums.phpfreaks.com/topic/163383-solved-using-a-double-quote-in-phphtml/ Share on other sites More sharing options...
J.Daniels Posted June 23, 2009 Share Posted June 23, 2009 echo "<INPUT TYPE=SUBMIT VALUE='Submit CR' onClick=\"return confirm('Changing an existing')\">"; Link to comment https://forums.phpfreaks.com/topic/163383-solved-using-a-double-quote-in-phphtml/#findComment-862065 Share on other sites More sharing options...
dmaru09 Posted June 23, 2009 Author Share Posted June 23, 2009 echo "<INPUT TYPE=SUBMIT VALUE='Submit CR' onClick=\"return confirm('Changing an existing')\">"; Oh wow very easy answer. Should have known this.... Thank you very much. Much appreciated! Link to comment https://forums.phpfreaks.com/topic/163383-solved-using-a-double-quote-in-phphtml/#findComment-862070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.