else { echo"
<td style='color:green' onclick=alert '('You have already send a request for buying this ticket ')'><a href='sell.php?buy=" . $b_id . "&usr=" . $buyer_id . "&sell=" . $s_id . "'> Resend Your detail </a>
</td>"; echo"

</tr>";

请帮助将javascript与内联样式表绑定。任何帮助都将不胜感激。

最佳答案

在你的任务中

 <td style='color:green' onclick=\"javascript:alert('You have already send a request for buying this ticket')\"><a href='sell.php?buy=" . $b_id . "&usr=" . $buyer_id . "&sell=" . $s_id . "'> Resend Your detail </a>

顺便说一句,你的报价方式不是最好的

09-25 21:00