-6
echo "<tr><td colspan ='2'><center><input type='submit' value='Reply' onClick = "window.open = 'post_reply.php?cid=".$cid." &tid =".$tid."' /">";

Button does nothing.Can someone help fix.

Alexander O'Mara
  • 58,688
  • 18
  • 163
  • 171

1 Answers1

0

Your strings are quoted wrong, your second double quote after on click = terminates the string, I havent tested my soloution but you need something like (below)

You need to escape double qoutes if it is literally part of the string

echo "<tr><td colspan ='2'><center><input type='submit' value='Reply' onClick='window.open(\"post_reply.php?cid=$cid&tid=$tid\")' />";
Max Carroll
  • 4,441
  • 2
  • 31
  • 31