Denis McMahon wrote:
> <p style="text-align:center">
> <span class="btnlink"
> onclick="document.getElementById('form_id').submit ()">bing</span>
> <a href="handler2" class="btnlink">frog</a>
> </p>
>
> This also means you can put the "submit" button outside the form.
>
> Doubtless someone will be along shortly to tell me my css, html or
> javascript is horribly broken, but whatever.
>
Yes it is, but far worse is that your "solution" *requires* JavaScript
in order to submit the form.
To OP without a URL to what you are attempting it is hard to advise.
Generally if you need a form to have two options that run difference
scripts far better fussing with two form actions but have a single
"frontend" script and have a radio button group with your two options.
<form action="theDecider.cgi">
<div>
Choose: <input type="radio" name="do" value="this"><label>This</label>
or <input type="radio" name="do" value="that"><label>That</label>
<br>
<input type="submit" value"Make it so!">
</div>
</form>
#theDecider.cgi
....
if( param('do') eq 'this' )
{
# call 'this' script
}
elseif ( param('do') eq 'that' )
{
# call 'that' script
}
else
{
# invalid input handle error
}
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com