Link to home
Start Free TrialLog in
Avatar of WhiteBusLady
WhiteBusLadyFlag for United States of America

asked on

Delphi/Intraweb - How to read Request info?

I need to read the name/value pairs of hidden fields in forms.

I can create a simple html form, with method="get" action="www.my intraweb dll...", and read the data using WebApplication.RunParams, like this:

if WebApplication.RunParams.count > 0 then
    for i := 0 to WebApplication.RunParams.count-1 do
      mMemo1.Lines.Add('RunParam' + IntToStr(i) + '  '
                       + WebApplication.RunParams.Names(i)
                       + ' = ' + WebApplication.RunParams.ValueFromIndex(i));

When the simple html form uses method="post", I thought I could use Request.Form in the same way.  But there is no Request.Form.  There is Request.ContentFields and Request.QueryFields, but they do not contain the hidden fields in my form.  Where should I be looking for those name/value pairs?

I am using Delphi 2010, and the version of IntraWeb that comes with it.
Avatar of WhiteBusLady
WhiteBusLady
Flag of United States of America image

ASKER

Guess it wasn't such a "dumb" question after all. I'd be happy to raise the points to 500 if I could find a way to do that via the EE mobile interface. I may not have a cabled connection until Sunday.
Guess it wasn't such a "dumb" question after all. I'd be happy to raise the points to 500 if I could find a way to do that via the EE mobile interface. I may not have a cabled connection until Sunday.
Avatar of jimyX
jimyX

Hi WhiteBusLady,
The first step of getting quick assistance is to ask the question in the right zone. You are putting your question in an irrelevant zones (or not directly related to your question).
I have requested the moderator's intervention to move this question to the right zone(s).
What web server are you using?  I found a comment in the update history (from AToZed) that states:

10.0.3

Fixed: "Cannot find submit component" with buttons and other submit action controls on frames.
Encoding of HTML literals has been changed to be less aggressive so it will no longer encode ,.-_ This helps with posting hidden fields to other servers which do not properly decode parameters.

This indicates to me that there are web servers that will not process hidden fields correctly in relation to older versions of IntraWeb.  So, the two variables would be your version of IntraWeb and your server.  The version of IntraWeb can be updated through AToZed without updating your version of Delphi (unless they require features in a newer version of Delphi for the latest tool set).  Of course, if a different web server would fix it, changing the web server might be an easy solution too.  Here is the link I found the quote on:
http://www.atozed.com/intraweb/history/10.0/index.en.aspx

I have to state that I am not an expert on IntraWeb.  If you need more assistance with IntraWeb you might want to try my approach and contact them directly.
Server is IIS
ASKER CERTIFIED SOLUTION
Avatar of WhiteBusLady
WhiteBusLady
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I accepted my own answer because I finally figured it out.  No one else did.

I chose not to delete the question because I think the answer belongs in the KB.  Sure wish it had been there when I first looked.