RTC Forums
November 24, 2024, 04:50:28 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
Accessing form name from RTC Server
Pages: [
1
]
« previous
next »
Print
Author
Topic: Accessing form name from RTC Server (Read 4836 times)
kavetu
Newbie
Posts: 20
Accessing form name from RTC Server
«
on:
September 28, 2010, 09:40:25 PM »
I have an HTML page with a <FORM name = "document" action="" method="POST">.. </form> object on it. How do I access the name of this form ("document") in my RtcHTTP Server
through the TRtcDataProvider object?
Manfredt Kavetu
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: Accessing form name from RTC Server
«
Reply #1 on:
September 28, 2010, 10:37:00 PM »
You will get everything the Client (Web Browser in your case) sends to the Server when you use the Read method (raw content), but I don't think the name of the FORM object is sent to the Server in a FORM POST. I'm not a HTML expert, but as far as I know you have to specify the URL in the "action" field to have different URLs called on your Server for different FORM objects.
PS. You can use the Params.AddText() method to parse objects inside the FORM so you can easily access them by name, but there is no way to access the name of the FORM object there.
Best Regards,
Danijel Tkalcec
Logged
kavetu
Newbie
Posts: 20
Re: Accessing form name from RTC Server
«
Reply #2 on:
September 29, 2010, 01:35:27 AM »
Thanks, I will try this tomorrow (had been working since 8:00 AM Tue Sept 28, and the time
is now Wed Sept 29).
Manfredt Kavetu
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...