Page 1 of 1

Echo quotes problem

Posted: Tue Jan 04, 2011 4:16 pm
by JayCutler
Hello people :) Happy New Year !
Thanks to all of you for the help :)

Re: Echo quotes problem

Posted: Tue Jan 04, 2011 4:56 pm
by jankidudel
I'ts very bad practice to mix php with javascript int <script> </script> tags

Re: Echo quotes problem

Posted: Tue Jan 04, 2011 5:00 pm
by social_experiment
What about

Code: Select all

<?php
 $variable = ucwords(str_replace("-", " ", $searchterm));
 echo "<script>color (". $variable .")</script>";
?>