Darkangler
10-30-2007, 12:22 AM
How can I make a form to only submit once in this code?
<form name=form1 form method=post action=main.php?action=chat>
<SELECT NAME="chatid">
<OPTION VALUE="normal">Normal
<OPTION VALUE="emote">Emote
</SELECT>
<input type=text name=msg size=55> <input class=button type=submit value=CHAT ondblclick=disabled=true>
It's for chat so I can't change pages, and it only happens when they either hit enter twice or the page refreshes.
<form name=form1 form method=post action=main.php?action=chat>
<SELECT NAME="chatid">
<OPTION VALUE="normal">Normal
<OPTION VALUE="emote">Emote
</SELECT>
<input type=text name=msg size=55> <input class=button type=submit value=CHAT ondblclick=disabled=true>
It's for chat so I can't change pages, and it only happens when they either hit enter twice or the page refreshes.