Date:  12/31/2002 11:20:23 AM Msg ID:  001176
From:  Gene Gerard Thread:  001170
Subject:  Re: Submit button problems
This is great. Exactly what I need and I can hardly wait to try it.
 
Thanks.
 
Gene Gerard
 
Sent by FoxWeb Support on 12/30/2002 11:13:32 PM:
I can think of three ways to solve your problem:
 
1. You can change the appearance of submit buttons by using stylesheets.  For an example, take a look at the buttons in the FoxWeb Forum's Home and User Settings pages.
 
2. You can also use <input type="image" name="submit"> to use an image for your button.  In this case you will receive the x and y coordinates of the click. For example: Request.Form("submit.x") = "34" and Request.Form("submit.y") = "82".
 
3. A third option would be to use the onclick clause to set the value of a hidden field:
 
<form name="myform">
<input type="hidden" name="submit" value="0">
<span onclick="document.myform.submit.value='1';document.myform.submit()">
<img src="/images/submit.gif">
</span>
</form>
 
In this case if the user clicks on the code between the span tags the submit field will be set to "1".  Obviously, you can use anything you want between the span tags, including text and images.
 

FoxWeb Support Team
support@foxweb.com email