• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 587
  • Last Modified:

@UrlQueryString and Form Method Post not Get

I am using @UrlQueryString(" variable being passed ") to get values passed from a page that is not a Domino DB.  While tis works great while using the get method on my form, it does not work using the post method.  I need to use the post method because the form is rather large and a little more secure.

Is there a way to grab variables from the posted data in Domino, on the web, R6?
0
DawG25
Asked:
DawG25
  • 7
  • 5
  • 4
1 Solution
 
p_parthaCommented:
QueryString works only for URL's . If you need to access the field values of Post, then use Request_content

Partha
0
 
DawG25Author Commented:
How can I use that to populate a field?
0
 
p_parthaCommented:
Create a field in your form called as Request_Content, make it computed for dispaly and give the default value Request_Content and see what it contains when the post operation leads to this page

Partha
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
DawG25Author Commented:
Its blank.  Can it be computed when composed, or does it have to be computed.
0
 
p_parthaCommented:

You are trying to post data from your domino form to another applkication. Can i know what application is that?
I was assuming that i twas another notesdatabase.

Partha
0
 
DawG25Author Commented:
its a web page, just .html to a domino page.
0
 
p_parthaCommented:
So you are posting to a web page whichi is a plain html, then i need to think as i don't have a direct answer, or you can wait for other experts

Partha
0
 
DawG25Author Commented:
I am posting from plain html to a domino page.

so, myform.html submits to mynotesdb.nsf/form?OpenForm
0
 
p_parthaCommented:
In the forms webqueryopen try this code

dim session as new notessession
dim doc as notesdocument
set doc = session.documentcontext
print doc.request_content(0) ' this will print all the values and the fieldnames



0
 
qwaleteeCommented:
Hi p_partha,

Are you posting to a form or an agent?  I believe on a form, you can't use Request_Content, while in an agent, all the POST content is put into NotesItems in DocumentContext.

ON the other hand, if you are doing this in a form, you don't really need to work that hard.  Just create fields with the same name as the input names on the HTML form.  Where the field names match, the data will be pushed irectly into the field!

Best regards,
qwaletee
0
 
qwaleteeCommented:
Oh, FYI, POST data is usually notm ore secure than GET. Here's why.  All GET data is placed in the URL resource request.  The only thing that is treated difefrently there by the web server about that the resource name is that the resource name goes into the server's logs, while POST data does not.  So, if your logs are properly protected, then the stored data is no less secure in a GE than a POST.

That leaves network security.  If you are using cleartext (http), then both POST and GET are transmitted in the clear.  If you are using SSL (https), then even the URL is not transmitted in the clear, as the SSL socket sits above the TCP/IP socket.

Ergo, the only way POSt data could be more secure is if (shame, shame) your logs are not protected.
0
 
DawG25Author Commented:
you need nothing more than an editable text field named the same to have it populated?
0
 
qwaleteeCommented:
Yes.  If the POST is to a ?SaveDocument URL, then any HTML inputs will be matched up to fields on the form of the same name, and stored in the document.

In fact, that's how native Domino forms work.  You create a form with a subject field and a save button. Look at the HTML of the form (?OpenForm).  There will be an action that uses teh same form URL with ?SaveDocument, and a visible input named Subject.  You submit it, Notes matches the URL to the form, and matches the Subject POST data with the Subject field on the form.
0
 
DawG25Author Commented:
Worked great using the ?CreateDocument.
0
 
DawG25Author Commented:
do you have to do anything special for a text area?  I know its a rich text field, but I can't get it to fill populate.
0
 
qwaleteeCommented:
Rich text fields have some oddities about the way they are set up.  Why do you need it to be a rich text field?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now