[ic] [button] and mv_form_profile question.

Andrew Baerg interchange-users@icdevgroup.org
Sat Mar 1 13:59:00 2003


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>

Andrew Baerg
Edge Marketing Sales
www.yoursole.com

On Fri, 2003-02-28 at 14:58, JOHN WRONG wrote:
> 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>
> 
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users