Sunday, 15 September 2013

Form not going to the #

Form not going to the #

I have this code
echo '<form
action="?id='.$topic_id.'&part=9&num='.$_GET['num'].'#commenting "
method="POST" style="border: none; margin: 0;">';
echo '<textarea style="display: none; margin: 0;"
name="old_comment">' . $row['comment'] .
'</textarea>';
echo '<textarea style="width: 90%;"
name="new_comment">' . $row['comment'] .
'</textarea>';
echo '<input type="submit" value="Save Edit &raquo;"
class="button">';
echo '</form>';
The form seems to ignore the #. I dug into the displayed code in chrome.
It shows...
<form action="?id=28&part=1" method="POST" class="comment">
<textarea name='comment'></textarea>
<input type="submit" value="Post Comment &raquo;" class="button">
</form>
#commenting just disappeared.....
Does # have some other meaning or am I doing it wrong?

No comments:

Post a Comment