[Gambas-user] gb.web how to grab using post and get?

Fabien Bodard gambas.fr at ...626...
Fri Nov 22 12:00:50 CET 2013


what give you :
myreqinput = Request.post["nameinput"]



2013/11/21 PICCORO McKAY Lenz <mckaygerhard at ...626...>:
> i mean: with method GET of html forms i can use Request["nameoffield"]
> but if i use POST i dot nothing!
>
> why?
>
> (my previos post msg was very vage and generic, sorry)
>
> example i use, webpageform.webpage and webpagerequest.webage was:
>
>
> BEGIN OF FILE:   webpageform.webpage
> #!/usr/bin/env gbw2
> <% Print "Begin render request page" %>
> <html>
> <head><title>GSP example request/response</head><body>
> <FORM action="webpageresponse.webpage" method="POST">
> input 1:<INPUT TYPE="text" NAME="nameinput"><BR>
> <INPUT type="submit" value="Enviar">
> </FORM>
> </body>
> <% Print "Ending render request page" %>
> </html>
> END OF FILE:   webpageform.webpage
>
>
> BEGIN OF FILE:   webpageresponse.webpage
> #!/usr/bin/env gbw2
> <%
> Dim myreqinput as String
> %>
> <html>
> <head><title>GSP example request/response</head>
> <body>
> <%
> myreqinput = Request["nameinput"]
> %>
> Response request input was:<%= myreqinput %>
> </body>
> <% Print "Ending render response page" %>
> </html>
> END OF FILE:   webpageresponse.webpage
>
>
> --
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list