Data from web form

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
snowfun
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 16
Joined: Tue May 29, 2007 7:22 am

Data from web form

Post by snowfun » Tue Jul 28, 2009 2:26 pm

I am envisaging various uses of revlets within web pages as part of online education programmes. And the "rev" part of the programming is no problem (users can move stuff about, enter text, make selections, save results & data to files etc etc...) But if this is to become useful, I need to know the id of the student who has submitted the work. This information is recorded within a form on the web page in which the revlet is embedded.

My question... is there anyway of extracting the content of the field/form for use by the revlet?

I have made this work within on-rev using the POST command:
put $_POST["fstudent"] into theStudent
where "fstudent" is the field automatically populated with the student's id and theStudent is the variable available for processing by rev. Ok.

But is something similar available to revlets?

Any assistance gratefully received!

Tim

ps for those interested, this is intended to add significant functionality to the WebCT/Blackboard VLEs without resorting to writing powerlinks and/or Flash.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Wed Jul 29, 2009 5:58 am

The only thing I can think of, is building the dynamic page containing the revlet, in such a way to add the content of the $_POST parameters to the parameters of your revlet, and then reading those in the revlet's preOpenStack handler.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

snowfun
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 16
Joined: Tue May 29, 2007 7:22 am

Post by snowfun » Wed Jul 29, 2009 8:07 am

Thanks - will experiment with this approach and post whatever the outcome is.

Post Reply