[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:59:16 -0400
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 3/10/25 5:57 PM, T Lee Davidson wrote:
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.
I should probably clarify. If the button's name does not exist in the Fields array, then it was not clicked. -- 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 | Fabien Bodard <gambas.fr@xxxxxxxxx> |
Problem on catching form submition | Fabien Bodard <gambas.fr@xxxxxxxxx> |
Re: Problem on catching form submition | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |