Lambneck Posted March 2, 2009 Share Posted March 2, 2009 Anyone know whats wrong with this line of code? Its keeping my page from validating. I think its because there are quotes missing from the onclick function, but all the quote combinations i have tried ruin the operation. echo '<tr class="' . $class . '" onmouseover=this.style.cursor="pointer" onclick=location.href="esl-teaching-position.php?id='.$row['submission_id'].'">'; Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 2, 2009 Share Posted March 2, 2009 The problem is the actions in the onmouseover and onclick triggers are not within quotes <?php echo "<tr class=\"{$class}\" onmouseover=\"this.style.cursor='pointer';\" onclick=\"location.href='esl-teaching-position.php?id={$row['submission_id']}';\">"; ?> Quote Link to comment Share on other sites More sharing options...
Lambneck Posted March 2, 2009 Author Share Posted March 2, 2009 That did it. Thanks for the help mjdamato! 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.