Do you have a question? Post it now! No Registration Necessary. Now with pictures!
September 1, 2005, 4:09 am
rate this thread
using a Perl script. I previously wrote about a question which I still
need some assistance with. In previous postings I received similar
advice which I greatly appreciate. What I want to happen is that when
perl script will be called:
The advice I received was of the following form: To create a form
using the onsubmit form attribute and to set any values I wanted to be
sent to the perl script in hidden values input controls.
The examples given were of the form:
<form action=3D"myPerlScript.pl" onsubmit=3D"return
<input type = submit...>
This is not working for me and I'd appreciate if someone can tell me
why. I'm guessing this a glaring error. First of all, the entire
script is contained in one form:
<form action=3D"toBeChanged.pl" onsubmit=3D"return do_processForm()">
function runs, followed by the HTML that creates the form and then
ultimately the submit button.
DOM document.form.action = x.pl because depending on certain form
selections I want different script to be called. Any advice would be
- Benjamin Niemann
September 1, 2005, 9:03 am
What exactly is not working? Are the hidden values not set (probably same
problem as below)?
An URL to you document would greatly help us to help you.
This can certainly not work (this would imply that there can only be one
form per document...). Give your form an id and use
document.getElementById('myform').action = ...
Email: pink at odahoda dot de
WWW: http://www.odahoda.de /
That's an invalid function name.
"submit" should be in quotes. And no spaces either side of the "=" sign.
It's not working? Try fixing the above errors. And remember to check that
your computer is switched on. If you want some more helpful advice, please
provide a URL and describe (a) what the script is supposed to do, and (b)
what is actually happening.
phil [dot] ronan @ virgin [dot] net