
parham_m_s
journeyman
May 15, 2001, 1:36 PM
Post #1 of 3
(13877 views)
|
submit/reset problem
|
Can't Post
|
|
i have forms around my script which have different form names. I am submitting and resetting my forms through javascript. here's the submitting part of it ('mainform' is the name of the form), i did it this way so i can change the name of the form easily:
<A HREF="javascript:form_submit('mainform')"><IMG SRC="submit.gif" BORDER=0></A> and here's the submit javascript part of it:
function form_submit(selected_form) { document.selected_form.submit(); } i keep getting an error, but i don't know why. I'm not completely familiar with javascript, so passing information is very new to me. Any help is appreciated, thank you.
|