I'm struggling with a problem with makeing my old form work with Javascript. Here is the old form that works with our CGI script: Code: <form method="POST" enctype="application/x-www-form-urlencoded"> .... a series of fields.... <input type="submit" name="save_meeting_msg" value=" Update "> ok this works... however when i try to apply the same syntax to our fancy javascript template (which adds pretty colors to the button etc.) it stops working: here is the code:
Javascript Forms
4
I'm struggling with a problem with makeing my old form work with Javascript. Here is the old form that works with our CGI script:
ok this works... however when i try to apply the same syntax to our fancy javascript template (which adds pretty colors to the button etc.) it stops working: here is the code:
its not passing along the VALUE variable 'save_meeting_msg' to the CGI script so when the form is submitted it doesn't know what to do.
I've looked everywhere and can't seem to find how to use the submit() to pass along the 'name' value in Javascript.
Your help is greatly appreciated.
Code:
<form method="POST" enctype="application/x-www-form-urlencoded"> .... a series of fields.... <input type="submit" name="save_meeting_msg" value=" Update ">
Code:
<form id="ContactForm" method="POST" enctype="application/x-www-form-urlencoded">
.... a series of fields....
<a href="#" class="link2" name="save_meeting_msg" onclick="document.getElementById('ContactForm').submit()"><strong><strong>Send</strong></strong></a> I've looked everywhere and can't seem to find how to use the submit() to pass along the 'name' value in Javascript.
Your help is greatly appreciated.
- Robert24
- cmaclean
- mywebwork
Next Topics on Trending Feed
-
4