[ic] Images instead of Form submit buttons

Marcel Montes marcel@multimake.com
Mon, 20 Nov 2000 18:15:57 -0300


--------------22E4694F3A247D7132E7F2B4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

if you use input type="image" name="mv_check"
it generates two variables:
mv_check.x and mv_check.y
pointing to the location where you clicked on the image,
it doesn't generate mv_check

Zachary Matthews wrote:

> I have seen this question on archived mail lists, but I have not see it
> successfully answered.  Please advise!
>
> I am using images instead of the standard form submit buttons.  I keep
> running into problems trying to set mv_click and mv_check, and I have
> tried all kinds of solutions to no avail.  Has anyone solved this
> problem?
>
> Here is what works:
> <input type="submit" NAME="mv_check" value="Log In">
>
> [set Log In]
> [if session logged_in]
> mv_nextpage=index
> [else]
> mv_nextpage=login
> [/else]
> [/if]
> [/set]
>
> Here is what I want to do (none of these attempts successfully set
> mv_check):
>
> A)
>     <input type="image" src="submit.gif" name="mv_check" value="Log In">
>
> B)
>     <input type="hidden" name="mv_check" value="">
>     <input type="image" src="submit.gif"
> onClick="this.form.mv_check.value='Log In'; this.form.submit();">
>
> C)
>     <input type="hidden" name="mv_check" value="">
>     <a href="javascript:void 0" onClick="this.form.mv_check.value='Log
> In';  this.form.submit(); return(false);"><img src="submit.gif"></a>
> "
>
> D)
> [button
>   text="Log In"
>   src="submit.gif"
>   hidetext=1
>   form="logform"
>  ]
>  mv_check="Log In"
> [/button]
>
> E)
> [button
>   text="Log In"
>   src="submit.gif"
>   hidetext=1
>   form="logform"
>  ]
>     [if session logged_in]
>     mv_nextpage=index
>     [else]
>     mv_nextpage=login
>     [/else]
>     [/if]
> [/button]
>
> I am running out of ideas... and starting to run out of hair to pull...
> please help!
> Thanks.
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@www.minivend.com
> http://www.minivend.com/mailman/listinfo/interchange-users

--
 Marcel Montes [marcel(at)multimake(dot)com] - Programmer
 "If our brain were so simple that we could understand it,
 we would be so stupid that we couldn't do so"
-------------------------- EOF ----------------------------



--------------22E4694F3A247D7132E7F2B4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
if you use input type="image" name="mv_check"

it generates two variables:
mv_check.x and mv_check.y
pointing to the location where you clicked on the image,
it doesn't generate mv_check

Zachary Matthews wrote:

I have seen this question on archived mail lists, but I have not see it
successfully answered.  Please advise!

I am using images instead of the standard form submit buttons.  I keep
running into problems trying to set mv_click and mv_check, and I have
tried all kinds of solutions to no avail.  Has anyone solved this
problem?

Here is what works:
<input type="submit" NAME="mv_check" value="Log In">

[set Log In]
[if session logged_in]
mv_nextpage=index
[else]
mv_nextpage=login
[/else]
[/if]
[/set]

Here is what I want to do (none of these attempts successfully set
mv_check):

A)
    <input type="image" src="submit.gif" name="mv_check" value="Log In">

B)
    <input type="hidden" name="mv_check" value="">
    <input type="image" src="submit.gif"
onClick="this.form.mv_check.value='Log In'; this.form.submit();">

C)
    <input type="hidden" name="mv_check" value="">
    <a href="javascript:void 0" onClick="this.form.mv_check.value='Log
In';  this.form.submit(); return(false);"><img src="submit.gif"></a>
"

D)
[button
  text="Log In"
  src="submit.gif"
  hidetext=1
  form="logform"
 ]
 mv_check="Log In"
[/button]

E)
[button
  text="Log In"
  src="submit.gif"
  hidetext=1
  form="logform"
 ]
    [if session logged_in]
    mv_nextpage=index
    [else]
    mv_nextpage=login
    [/else]
    [/if]
[/button]

I am running out of ideas... and starting to run out of hair to pull...
please help!
Thanks.

_______________________________________________
Interchange-users mailing list
Interchange-users@www.minivend.com
http://www.minivend.com/mailman/listinfo/interchange-users

-- 
 Marcel Montes [marcel(at)multimake(dot)com] - Programmer  
 "If our brain were so simple that we could understand it, 
 we would be so stupid that we couldn't do so"
-------------------------- EOF ----------------------------
  --------------22E4694F3A247D7132E7F2B4--