[Gambas-user] WebPage variables

Mayost Sharon sharon at 455.co.il
Mon Sep 18 22:00:11 CEST 2023


Hello

I found my mistake
In line 10 in Main.class
I wrote by mistake:
gb_fname = Request.Post["lname"]
instead of
gb_lname = Request.Post["lname"]

Now it's working

Anyway, I wanted to know if it is true that I am using the event:
_new

Thank you

---------- Original Message -----------
From: "Mayost Sharon" <sharon at 455.co.il>
To: Gambas Mailing List <user at lists.gambas-basic.org>
Sent: Mon, 18 Sep 2023 21:05:33 +0300
Subject: [Gambas-user] WebPage variables

> Hello
> 
> I'm trying to figure out how to work with a WebPage (gb.web)
> 
> I created a page with:
> 
> First name
> Last Name
> and a submit button
> 
> When I click the button I want to read the values from a text box of:
> First name
> Last Name
> 
> I do manage to get the values typed by:
> Request.Post["fname"]
> Request.Post["lname"]
> 
> But I can't get them to move back to the page
> 
> This resets all values
> 
> The sample is attached
> 
> Thanks for the help
------- End of Original Message -------



More information about the User mailing list