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

JavaScript form processing

P: n/a
Hi

Is it possible to use JavaScript to apply different actions to a form
depending on a value within the form (eg sending form data to
different cgi scripts depending which radio button is checked)?
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
abracad wrote:
Is it possible to use JavaScript to apply different actions to a form
depending on a value within the form (eg sending form data to
different cgi scripts depending which radio button is checked)?


Possible, but unwise - it causes the script to break should JavaScript not
be available an enabled.

Check which script you want to use on the server, then perform an http
redirect by sending a location header along with a suitable status code.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.