-1

Simple question; how do I get this to work in php because of the quotes?

echo "<table class='tablestyleorchideeaanbod' onClick='document.location = 'links.html''>";
Kevin Ammerlaan
  • 151
  • 1
  • 1
  • 11

1 Answers1

1

By escaping the single quotes.

echo "<table class='tablestyleorchideeaanbod' onClick='document.location = \'links.html\''>";
Ido
  • 2,034
  • 1
  • 17
  • 16