The use of name attribute of HTML element
I want to use a simple form template, that has submit button and few other hidden fields with name attribute and value attribute, to send data to another server.
However, I can't implement the form (using either WText or WTemplate), because the name attribute is removed on client side.
Please fix this issue.
Updated by Koen Deforche over 7 years ago
- Status changed from New to Feedback
You need to use Wt::XHTMLUnsafeText as a text format for the template.
Also note that this is not going to work for plain-HTML sessions because there is already a
that contains the entire page.
If possible, you should consider to submit the data to the other website through a server-side action (e.g. using Wt::Http::Client).