I have a form with multiple buttons submitting CGI postings based on user selections. The problem that I'm having is that one of the postings is being sent to another server rather than my own for processing and looks like I will need to change the form action reference on the fly.
Otherwise when the form action reference is set my other buttons attempt to target the reference as defined in the original form action settings.
Some of the reference material I have suggests that this can be changed on the fly but I can't see to get it to work. Help! lol
<td>
<script type="text/javascript">
function val() {
document.forms.name = "CFForm_1"
document.forms.action = " }
</script>
<input type="submit" value="Validate" onclick="val()">
</td>
Not much to work from so I hope that is clear enough...
Thanks in advance for any help you can give!
Chris
Otherwise when the form action reference is set my other buttons attempt to target the reference as defined in the original form action settings.
Some of the reference material I have suggests that this can be changed on the fly but I can't see to get it to work. Help! lol
<td>
<script type="text/javascript">
function val() {
document.forms.name = "CFForm_1"
document.forms.action = " }
</script>
<input type="submit" value="Validate" onclick="val()">
</td>
Not much to work from so I hope that is clear enough...
Thanks in advance for any help you can give!
Chris