> I've been experimenting with Gambas server pages and I must say, its
> brilliant.
>
> At the moment I'm trying to get data entered on a form on a web page to be
> written to a file on the server. I have got as far as making the html page
> with a form. Here is an excerpt:
>
> <form action="myscript.gbw" method="post" enctype="text/plain">
> <p>Your Name: <input type="text" name="your_name" /></p>
>
> What I'm wondering is how to access the "your_name" variable in the gambas
> script that this form has under action. I can't figure it out.
>
> Thanks.
You must use the gb.web component and its Request class.
Print Request["your_name"]
This component has almost the same interface as ASP on Windows, so you should
be able to use it easily. Of course if you have more precise questions, ask
them!
Regards,
--
Benoît
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user