[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem on catching form submition
[Thread Prev] | [Thread Next]
- Subject: Re: Problem on catching form submition
- From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Date: Mon, 10 Mar 2025 17:57:43 -0400
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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] ----
Re: Problem on catching form submition | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Problem on catching form submition | Fabien Bodard <gambas.fr@xxxxxxxxx> |