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? Quote Link to comment 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')\">"; Quote Link to comment 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! Quote Link to comment 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.