By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,200 Members | 1,754 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,200 IT Pros & Developers. It's quick & easy.

form reloads itself when action is set to another page

P: n/a
AC
Hi,

I have the following code for my form, which is supposed to update a
grade integer field and a text area, but when I click the submit
button, instead of sending the user to the page
gradebook_modify_proc.jsp, it just reloads the current page
(gradebook_modify.jsp).

<html>
<head>
<title>Modify Grade</title>
</head>
<FORM method="post"
action="gradebook_modify_proc.jsp?c_id=211&a_id=15 19&receiptUrl=null&source=cp_gradebook_modifyGrade "
ENCTYPE="multipart/form-data" name="mainForm">
<input type="hidden" name="remove_file_id" value="">
<input type="hidden" name="add_file" value="">

<table cellspacing="0" border="0" cellpadding="5" >
<tr>
<td width="*" align="left" valign="top" nowrap><span
class="label">Grade</span>&nbsp;</td>
<td width="100%" align="left" valign="top"><INPUT NAME="grade"
TYPE="text" SIZE="6" value="13"> out of 15.0</td></tr>
<tr>
<td width="*" align="left" valign="top" nowrap><span
class="label">Comments</span>&nbsp;</td>
<td width="100%" align="left" valign="top">
<textarea name="comments"
rows="8"
cols="40"
wrap="soft"></textarea>
</td></tr>
</table>

<table cellspacing="0" border="0" cellpadding="5" width="100%">
<tr>
<td colspan="3" align="right" width="100%">
<a
href="gradebook_modify.jsp?c_id=211&s_id=231&a_id= 1519&l_id=261&cmId=221&oId=261&method=modify&recei ptUrl=null"><img
ALT="Cancel" name="img_cancel"
src="/images/ci/formbtns/cancel_off.gif?c_id=211" BORDER="0"
HSPACE="5"></a>

<INPUT TYPE="image" ALT="Submit" name="submit"
src="/images/ci/formbtns/submit_off.gif?c_id=211" BORDER="0"
HSPACE="5">
</td>
</tr>
</table>

</FORM>
</body>
</html>

Anybody have an idea of why?

Thanks in advance,
Allen

Jun 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
AC
Just cleaning up the code a little bit...

<html>
<head>
<title>Modify Grade</title>
</head>
<FORM method="post" action="gradebook_modify_proc.jsp"
ENCTYPE="multipart/form-data" name="mainForm">

<input type="hidden" name="remove_file_id" value="">
<input type="hidden" name="add_file" value="">

<table>
<tr>
<td>Grade</td>
<td><INPUT NAME="grade"TYPE="text" SIZE="6" value="13"> out of
15.0</td>
</tr>
<tr>
<td>Comments</td>
<td><textarea name="comments"</textarea></td>
</tr>
</table>

<table>
<tr>
<td>
<a href="gradebook_modify.jsp"><img ALT="Cancel" name="img_cancel"
src="/images/cancel_off.gif"></a>

<INPUT TYPE="image" ALT="Submit" name="submit"
src="/images/submit_off.gif">
</td>
</tr>
</table>

</FORM>
</body>
</html>

Jun 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.