Jump to content

[SOLVED] validation problem


Lambneck

Recommended Posts

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'].'">';

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/147534-solved-validation-problem/
Share on other sites

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']}';\">";

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.