Glaanieboy
OSNN Veteran Addict
- Joined
- 6 Mar 2002
- Messages
- 2,628
Code:
<FORM target="right" action="right.php" name="submit_message" method="GET">
<INPUT type="hidden" name="showrows" value="15">
<?php
print "Name: <INPUT type=\"text\" name=\"name\" maxlength=\"25\" size=\"25\" ><BR>";
?>
Message: <INPUT type="message" name="text" maxlength="255" size="25" value=""><BR>
<INPUT type="submit" value="SHOUT!"></FORM>
This is how it looks like currently (please don't pay attention to the PHP code). What I want is that after the form has been submitted, that it clears the 'Message' field. I found one piece of javascript code (onClick="reset(this.form)" placed in the final INPUT), but that resets the field before the string has been submitted.
Can anyone help me?
edit: removed some code to correct the posts' width.