|
// attribute to set the maximum characters they can enter. // use value="some text" to pre-fill the input with data. Out ( '<input type="password" name="password" size="30"></input>' ); Out ( '</td></tr>' );
Out ( '<tr><td align="right" valign="top">' ); Out ( 'Message:' ); Out ( '</td><td align="left" valign="top">' ); // textarea is a multiline text box. specify the size with the // cols and rows attributes. wrap can be "off" (the default) // "physical" or "virtual". as an example, consider the user // typing in the following text in a 40 character wide input: // // "I wonder how this text will appear to the server when I send it?" // // wrap="off" will send it as typed, but the user has to scroll off // to the right to see the text. (Horrid) // // wrap="physical" will physically split the line after the word // 'server' and send two lines to the server // // wrap="virtual" will send one line, as typed, but the user // will see the text nicely wrap in the input. Perfect! Out ( '<textarea name="message" cols="30" rows="8" wrap="physical"></textarea>' ); Out ( '</td></tr>' );
Out ( '<tr><td align="right" valign="top">' ); Out ( ' ' ); Out ( '</td><td align="left" valign="top">' ); // type='submit" provides a submit button to perform the // form action. the button says "Submit" unless you override // with the value attribute. Out ( '<input type="submit" value="Send Mail"></input>' ); Out ( '</td></tr>' );
Out ( '</table>' );
Out ( '</form>' ); } else { // get the message from the form var sMessage = "" + Request.Form ( "message" );
|