Show formsubmit.jsp syntax highlighted
<!--
Jameleon - An automation testing tool..
Copyright (C) 2003 Christian W. Hargraves (engrean@hotmail.com)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-->
<html lang="en">
<head>
<title>Form submit</title>
</head>
<body >
<form name="form" method="post" action="submit.jsp">
<select name="accnt" multiple>
<option value="chk" selected="selected">Checking - xx123-45</option>
<option value="sav" >Saving new - xx567-89</option>
</select>
<p>
<input type="radio" name="searchType" value="start_end_date" checked="checked"> From:
<input type="text" name="startDate" maxlength="10" size="8" > to:
<input type="text" name="endDate" maxlength="10" size="8" >
<br><input type="radio" name="searchType" value="no_of_days" >
Display
<input type="text" name="numberOfDays" maxlength="3" size="2" value=""> days
<p>
<input type="checkbox" name="vis" value="Visa">Visa
<br><input type="checkbox" name="mas" value="MasterCard" checked="true">Master Card
<br><input type="checkbox" name="dep" value="Department Credit Card">Department Credit Card
<p>
<input type="submit" name="submit" value="Submit">
</form>
<hr>
<form name="file_form" action="index.jsp" method="post" enctype="multipart/form-data">
<br>Upload a file: <input type="file" name="fileEx">
<input type="submit" name="submit" value="Submit">
</form>
<form name="javascriptForm" action="index.jsp">
<input type="text" name="textfield"><br>
<input type="submit" name="name1" onclick="javascriptForm.submit();">
<input type="submit" value="value1" onclick="javascriptForm.submit();">
<input type="submit" value="value2" name="name2" onclick="javascriptForm.submit();">
</form>
</body>
</html>
See more files for this project here