[Gambas-user] gb.web how to grab using post and get?
PICCORO McKAY Lenz
mckaygerhard at ...626...
Thu Nov 21 16:32:42 CET 2013
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
More information about the User
mailing list