RTC Forums
April 26, 2024, 08:44:25 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Accessing form name from RTC Server  (Read 3590 times)
kavetu
Newbie
*
Posts: 20


« 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


« 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


« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 16 queries.