how to refer html file in a form

hai experts,
  i have html file test.html when i put the html file in default("d:\lotus\domino\data\html") folder its working fine.now i want to refer the same html file in a form or a page.

what i did is i copied the html code and pasted on form
passthru html i am getting uid not found in console.
so i created field uid,password on the form.when i submit i am getting form processed.i created a field named "html" now when i submit i am getting blank page.no error in server console also.
i put the follwing code
<html>
<body>
<form  action="http://www.abc.com/test/cf/Login.cfm?Action=Login&domino=1" method=post>
username: <input type="text"  width=40 name="uid">
password:<input type="password"  width=40 name="password">
<input type=submit>

waiting for reponse.

saleemkhanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Jean Marie GeeraertsConnect With a Mentor Application EngineerCommented:
Try to remove the line :
<form  action="http://www.abc.com/test/cf/Login.cfm?Action=Login&domino=1" method=post>
Since the action is in the $$Return field there's no need to specify a form action like this.
Have you replaced the HTML-code for the input fields by placing a field ?
A few hints for creating the fields :
Locate them as follows :
username : [UID]
password : [password]

Set the first field to be of type 'Text', also in the HTML-properties tab (the last tab of the properties box) type the name of the field (=UID) for 'Id' and optionally specify size=40 parameter in 'Other' to define the width of the field.
Set the second field to be of type 'Password', also in the HTML-properties tab type the name of the field (=password) for 'Id' and optionally specify size=40 in 'Other' to specify the width of the field.

This way the fields should be defined using the correct HTML name tags.
0
 
Jean Marie GeeraertsApplication EngineerCommented:
I suppose you want to customize the way people login to your domino web server.
The way I did is to setup session authentication and customize the login-form in domcfg.nsf.
By doing this, you don't have to worry about redirecting after the login, domino will do that for you.
If a user clicks on a link to a secure part of your server (where anonymous access is set to no access), domino will automatically present the customized login-form and then redirect to the requested page.
If you need more details about how to setup session authentication and customizing the login-form, let me know. I'll be glad to elaborate.
0
 
saleemkhanAuthor Commented:
hai jerrith,
  no not the login problem.from domino to passusername and password to coldfusion application then fetch o fetch data from a coldfusion applicaiton http://www.abc.com/ab.cfm.
  In domino server session authentication is enabled and i customized login from everything is working fine.
  but i am facing a lot of problem  to fetch data from coldfusion application which is running on iis server?
i tried with @urlopen its working fine.
  what i want i want to just pass username and password then
  can u help reg this.

waiting for reply.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

 
Jean Marie GeeraertsApplication EngineerCommented:
Sorry, never heard of coldfusion, so I don't think I will be able to help you with this one. Maybe another expert can help you...
0
 
saleemkhanAuthor Commented:
ok no problem can u help

why a html file is working when i put the file in html folder("d:\lotus\domino\data\html\test.html").
the html code i copied and pasted in a form and passthru html i am getting error "uid" not found so i created two text fields with uid and password now when i submit i am getting form processed.so i created $$return.now no error.but not displaying anything on the page.
 my problem is only with html code to pass values.

waiting for reply.
0
 
Jean Marie GeeraertsApplication EngineerCommented:
To redirect domino after form submission, you need to create a $$Return field which is "computed for display" and contains the HTML-code to the location you want to go to between square brackets (for example: "[/homepage.nsf]")

Also hide this field, so the user doesn't see it by checking the hide-when option "Web browsers".
0
 
Jean Marie GeeraertsApplication EngineerCommented:
Have you tried to put the form's action in the $$Return field ?
0
 
saleemkhanAuthor Commented:
HAI JERRITH,
  I CREATED $$return field ->computed for display ->hide from web browser  after that i didnt follow u

i put  html file in d:\lotus\domino\data\test.html and the
same code i put on a form passthru html in the database
test.nsf so can u tell me step by step i have to do.

i want to pass these to the url is
http://www.abc.com/test/cf/login.cfm?action=logoin&domino=1
 
so what to do now?
this is the html code

<html>
<body>
<form  action="http://www.abc.com/test/cf/Login.cfm?Action=Login&domino=1" method=post>
username: <input type="text"  width=40 name="uid">
password:<input type="password"  width=40 name="password">
<input type=submit>


i think we are on the way.
waiting for reply.


0
 
Jean Marie GeeraertsApplication EngineerCommented:
Okay, try to put the following in the $$Return-field:
"[http://www.abc.com/test/cf/login.cfm?action=login&domino=1]"
Now when you click the submit-button of the form it should call the correct URL.

0
 
saleemkhanAuthor Commented:
hai jerrith,
  yes its redirecting to the url but a small problem.
Its not identifying the field "uid".its giving error like this

Error resolving parameter FORM.UID
The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.
  so what i did i created two fields uid,password  in domino form and when submitting its giving above error.


can u help me.
waiting for reply.
0
 
saleemkhanAuthor Commented:
same code working fine when iput the html file  in d:\lotus\domino\data\html  and run on the http://localhost its working fine.

i forgot to tell to in form i have
1.field name uid        type text
2.field name password    type text
3.field name html         type text  hidden from web
4.field name $$return  type computed
                            for display   hiddenfrom web
5.field name saveoptions type text computed default value 0


May be because of any of the above.something is missing in form only.

waiting for reply.
saleem.
0
 
Jean Marie GeeraertsApplication EngineerCommented:
Just saw your second comment, I'm guessing that if you add the name tags in the HTML-properties of the fields it should be okay. Just enter the names expected by your application in the Id-field.
0
 
saleemkhanAuthor Commented:
hai jerrith,
   sorry to ask u silly questions.as u said i removed the form action tag  and this is the follwing code on the form
created two fields
1.field  name=uid type=text but in the last html tab when i tried to place  (=uid) inplace of id getting error id/name must begin with a letter.
same for the password field also.



<html>
username: <input type="text"  width=40 name="uid" value="abc">
password:<input type="password"  width=40 name="password" value="correct">
<input type=submit>
</form>
0
 
Jean Marie GeeraertsApplication EngineerCommented:
Just leave out the "=" sign, just type UID, I was using the = sign to say name equals UID, my fault for not explainig it clearer.
Same for password field.
Sorry for the confusion,
0
 
saleemkhanAuthor Commented:
hai jerrith,
  even the field names are correct i am correct its giving the same error.sorry for the late reply.i went out for some other work.if u have any other idea why the error is coming just help me otherwise i will accept ur answer.


thank u very much for ur fast replies .really i got a very good information from u.

waiting for reply.
0
 
Jean Marie GeeraertsApplication EngineerCommented:
I'm running out of ideas now, myself.
If you gave the correct HTML-name tag through the HTML properties it should work.
One other thing you can try is to set in the form properties the option "Treat Document contents as HTML", this way the whole form gets translated to HTML and it's just as if it was a HTML document. If this doesn't help, I'm puzzled.
0
 
saleemkhanAuthor Commented:
hai jerrith,
   Thank u very much for ur fast replies.i put 50 points for the question but i gained a lot of knowledge from.
in future i need ur help.u are great.

my mail saleem99_99@yahoo.com.


if u send me mail i will be greatful to u.


waiting for ur mail.

saleem.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.