Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > newbie question on multiple submits in page

Thread Tools

newbie question on multiple submits in page

Posts: n/a
Currently I have the submit function definition in the header and multiple
rows where the submit function is called. It only works if there is one row,
I'd like to change the function so that it works with multiple rows but I'm
not sure how to do this. Can anyone help please?

This is generated by a perl script so you'll see some perl variables in
there and also some style sheet stuff which generates the submit text and
should not be relevant. I believe that I need to change the form name for
each row and pass that into the function. I don't know enough about
javascript to do this though


Here's the header data:

<script language="JavaScript">
function submitform() {

Here's what's currently in each row:

<form style="margin-bottom:0;" method="POST" name="myform"
<input type="hidden" name="datafile" value="$datafile">
<input type="hidden" name="strt" value="$mark">
<input type="hidden" name="pgln" value="$pgln">
<a href="javascript:document.myform.submit()"
onmouseover="lite(this)" onmouseout="lite(this)"
<noscript><input type="submit" value="View"></noscript>
<td> &nbsp; $name </td>
<td> &nbsp; $owid </td>
<td> &nbsp; $add1 $add2 </td>

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Submits in HTML Forms - Cherrypy Maurice LING Python 2 03-18-2008 09:25 AM
User Controls with Form fields & Multiple Submits =?Utf-8?B?QWxleCBNYWdoZW4=?= ASP .Net 1 05-07-2006 07:26 PM
Page Submits twice Umesh HTML 3 02-24-2006 08:10 PM
Form with multiple submits, but pressing enter focuses on the wrong button Matthew Sims Javascript 0 03-04-2004 06:10 PM
multiple form submits happening on window close Kuntal Joisher Javascript 0 09-06-2003 03:05 AM