469,352 Members | 1,661 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

JavaScript form processing

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
1 1410
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.

Similar topics

6 posts views Thread by Marios Koumides | last post: by
27 posts views Thread by Chris | last post: by
84 posts views Thread by Patient Guy | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.