[ic] [button] and mv_form_profile question.
JOHN
interchange-users@icdevgroup.org
Sat Mar 1 21:52:01 2003
---- On 01 Mar 2003 10:52:25, Andrew Baerg
(interchmail@baerg.ca) wrote:
> As far as I know, putting the mv_form_profile inside the
button, should
> not work. By doing this, mv_form_profile is getting set
__after__ it is
> read. From your example, it doesn't look like your [button]
is doing
> anything other than setting mv_form_profile , so you could
just do the
> following instead:
>
> <input type=image src="__THEME__/placeorder.gif"
name=mv_form_profile
> value=my_validate>
>
> > If I put mv_form_profile in a [button ...] it didn't work.
But
> > if I set it as <input type=hidden
name="mv_form_profile" .....
> > it worked. Shouldn't both work? I also checked that if the
> > mv_todo, mv_form_profile were set right and they were.
> >
> >
> > <html>
> > <body>
> > <BR>
> > [cgi mv_todo] [cgi mv_form_profile] [cgi mv_doit]<BR>
> > [scratch my_validate]
> > [update values]
> >
> > <form action="[process]" method="POST">
> > <input type=hidden name="mv_session_id" value="[data
session
> > id]">
> >
> > <input type=hidden name="mv_form_profile"
value="my_validate">
> >
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > If I put the above here it works.
> >
> >
> > [error name=textfield std_label="Generic Textfield"
required=1]
> > <input type=text name="textfield" value="[value
textfield]"><br>
> >
> > [set my_validate]
> > &success=index
> > &fail=@@MV_PAGE@@
> > textfield=required
> > &fatal=1
> > [/set]
> >
> > [button
> > name="mv_click"
> > src="__THEME__/placeorder.gif"
> > text="Go"
> > hidetext=1
> > ]
> > mv_todo=return
> > mv_form_profile=my_validate
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > If I remove <input type=hidden name="mv_form_profile" ...
and
> > put this here it won't work.
> >
> >
> > [/button]
> >
> > </form>
> > </body>
> > </html>
ah... thanks! that did it for me.
Question:
does mv_todo get set after it too? Is there anything else I
should beware of setting using [button ..]?
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag