[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem on catching form submition


On 3/10/25 5:05 PM, Fabien Bodard wrote:
In php normally we can catch if a form if submitted or not by :

if (isset($_POST['submit'])) {...

But I'm not able to catch any value from the button name :/ via Request.Post

any way to replace that ...? hidden field ?

I assume you are working with gb.web.

You can check for the existence of the button's name in the Request.Post.Fields array, eg. Request.Post.Exist("button_name"). If you need to differentiate between different buttons, simply give them values.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Problem on catching form submitionT Lee Davidson <t.lee.davidson@xxxxxxxxx>
References:
Problem on catching form submitionFabien Bodard <gambas.fr@xxxxxxxxx>