0
else
{
    echo <button onclick="window.location.href='des2.php';">lancer les des</button>;    
}

How should I mark out the html code ?

2
  • You need to escape one of the sets of quote marks within the string. This is already explained in the manual: php.net/manual/en/language.types.string.php Commented Jun 5, 2021 at 17:04
  • I added what I think is a better duplicate question, hopefully this provides some better ideas for you. Escaping quote marks is the worst of all methods because it's easy to make mistakes. Commented Jun 5, 2021 at 23:37

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.