How to use a database for user names and passwords in FrontPage 20

S

shikha

Hi,

When I got to this knowledge base, it says:

Step 2 - Create a new Web in FrontPage 2002
Note For this sample code to work correctly, you must make sure that the Web
name is LOGON, and that it is a subweb off the root of your Web site

What is the root of website. For example I have saved my login file
E:\Documents and Settings\shikha.sharma\My Documents\My
Webs\myweb5\database1_interface\Results.

In my case, what would be the root of website? And how can i make logon
subweb? Sorry I have tried to use this Login template many times, but I
think I am messing up with web & subweb.

Any help will be greatly appreicated :)

Thanks,

Shikha
 
S

Stefan B Rusynko

You can not run any ASP or DB in a disc based web
The location myweb5 is a Disc based web
E:\Documents and Settings\shikha.sharma\My Documents\My Webs\myweb5\database1_interface\Results.


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi,
|
| When I got to this knowledge base, it says:
|
| Step 2 - Create a new Web in FrontPage 2002
| Note For this sample code to work correctly, you must make sure that the Web
| name is LOGON, and that it is a subweb off the root of your Web site
|
| What is the root of website. For example I have saved my login file
| E:\Documents and Settings\shikha.sharma\My Documents\My
| Webs\myweb5\database1_interface\Results.
|
| In my case, what would be the root of website? And how can i make logon
| subweb? Sorry I have tried to use this Login template many times, but I
| think I am messing up with web & subweb.
|
| Any help will be greatly appreicated :)
|
| Thanks,
|
| Shikha
 
S

shikha

Stefan,

I actually published it to a webserver, and it still didn't work :)

And Thomas,

thank you for providing links, I will visit them and see what can I take
away :)

Thanks,

shikha
 
T

Thomas A. Rowe

How did you publish it to the web server via http?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


shikha said:
Stefan,

I actually published it to a webserver, and it still didn't work :)

And Thomas,

thank you for providing links, I will visit them and see what can I take
away :)

Thanks,

shikha


Stefan B Rusynko said:
You can not run any ASP or DB in a disc based web
The location myweb5 is a Disc based web
E:\Documents and Settings\shikha.sharma\My Documents\My Webs\myweb5\database1_interface\Results.


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi,
|
| When I got to this knowledge base, it says:
|
| Step 2 - Create a new Web in FrontPage 2002
| Note For this sample code to work correctly, you must make sure that the Web
| name is LOGON, and that it is a subweb off the root of your Web site
|
| What is the root of website. For example I have saved my login file
| E:\Documents and Settings\shikha.sharma\My Documents\My
| Webs\myweb5\database1_interface\Results.
|
| In my case, what would be the root of website? And how can i make logon
| subweb? Sorry I have tried to use this Login template many times, but I
| think I am messing up with web & subweb.
|
| Any help will be greatly appreicated :)
|
| Thanks,
|
| Shikha
 
S

shikha

Hi Thomas,

Yes, the way I publish it, I go publish my web, input the webserver
address...and its there...

I will give it try once again, and I will let you know what error I get.

Thanks :)

Shikha

Thomas A. Rowe said:
How did you publish it to the web server via http?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================


shikha said:
Stefan,

I actually published it to a webserver, and it still didn't work :)

And Thomas,

thank you for providing links, I will visit them and see what can I take
away :)

Thanks,

shikha


Stefan B Rusynko said:
You can not run any ASP or DB in a disc based web
The location myweb5 is a Disc based web
E:\Documents and Settings\shikha.sharma\My Documents\My Webs\myweb5\database1_interface\Results.


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi,
|
| When I got to this knowledge base, it says:
|
| Step 2 - Create a new Web in FrontPage 2002
| Note For this sample code to work correctly, you must make sure that the Web
| name is LOGON, and that it is a subweb off the root of your Web site
|
| What is the root of website. For example I have saved my login file
| E:\Documents and Settings\shikha.sharma\My Documents\My
| Webs\myweb5\database1_interface\Results.
|
| In my case, what would be the root of website? And how can i make logon
| subweb? Sorry I have tried to use this Login template many times, but I
| think I am messing up with web & subweb.
|
| Any help will be greatly appreicated :)
|
| Thanks,
|
| Shikha
 
T

Trevor L.

Stefan said:
You can not run any ASP or DB in a disc based web

I am not the OP but I have a related query.

I am setting up a new site which has database capabilities. I have not had this luxury before .

It was suggested by the administrator that I try an Access MDB.

I assume I can set up a database locally, using Micrsoft Access as installed on my desktop.

1. I don't know yet how to access the database in HTML, but I guess I can search the forums or W3Schools to get some ideas.

2. How do I test? Do I logon on to the remote sever - again somehing I have never tried, so how? Do I just specify
http://remote.com/ ?
(Other posts have said that a desktop can be run as a server using IIS, but *not * with Windows XP Home which is my OS, so is this
idea out ?)
 
A

Andrew Murray

Trevor....

Using the DB features is relatively easy.

1) Yes you can create the DB in Access or create a FP form and allow FP to
create the db for you based on the form field names (uunder Form properties
choose "Send to Database" then to to the options/advanced and set up the
connection.)

2) Go to Insert > Database > Results

3) Use the DBRW to guide you through creating a basic results page. GUI all
the way, and it gives you a chance to create a custom query if that's your
forte.

4) It creates the basic results page which you can then "jazz up" with CSS,
apply a DWT and the like.

www.frontpagewiz.com is a good tutorial for FP in general including the
database features.
 
A

Andrew Murray

Trevor, further to my other post.

You can test your ASP pages/database by just publishing as normal by http:
mode in FP to your host (requires a windows server). The other suggestion
you've seen was to publish to "http://localhost" which requires IIS under
Windows XP Pro or Windows 2000 Pro.

XP Pro running IIS can basically act as a web server - you can test FP
functions (e.g. server extensions) and ASP, ASPX/.Net etc.

Of course there's alot more involved in setting up a public web server but
IIS in XP Pro serves nicely as a test platform before publishing live.

The database wizards create ASP pages (not HTML pages). and you must save
your page as *.asp.
 
T

Trevor L.

Andrew said:
Trevor....

Using the DB features is relatively easy.

1) Yes you can create the DB in Access or create a FP form and allow
FP to create the db for you based on the form field names (uunder
Form properties choose "Send to Database" then to to the
options/advanced and set up the connection.)

2) Go to Insert > Database > Results

3) Use the DBRW to guide you through creating a basic results page. GUI all the way, and it gives you a chance to create a custom
query
if that's your forte.

4) It creates the basic results page which you can then "jazz up"
with CSS, apply a DWT and the like.

www.frontpagewiz.com is a good tutorial for FP in general including
the database features.

Andrew,
Thanks for the ideas.

But I am lost

I added a test form to myweb named form1.

It is a cut down version of one used before
It has
fields "Name" "Email" and (because that is what they were on the old form) "Bus1" "Bus2" "Bus3" "Bus4" "Bus5"
checkboxes "yes" "no" "Joining"
tetxtarea "Comment"
It also has a "submit" button and a "reset" field.
The form as it is on the web is at the bottom

I managed (after great difficulty) to log on the web server and open the page. I want to capture the results of the form to a
database (and later retreive them)
Where do I go from here?

I tried
Form Propeties
Send to database
Options...
Name: Database1
|o| File or folder in current web (chceked)
Advanced...
Username: My username on the web (as when logging in via FP)
Password: My password on the web (as when logging in via FP)

The OK button remained greyed
I clicked Browse...
and got a box "Database files in current web" with the web address at the top and folders under it and a blank space for URL
I entered "Testweb" and get eventually a message:
"Unable to retrieve the list of data sources from a database using the connection string "Database1"
DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=TestWeb

This looks as if it is trying to connect to a existing database, which of course doesn't exist.
A folder named "fpdb" was created but it is empty.

So I guess I didn't get past step 1) above

How to I create a new database?

I prefer to see the code rather then use a GUI. With GUIs I never know what questions they are asking, whereas with code, it can be
explained step by step.

BTW. I didn't see any tutorials on the link you gave. It seems to be a site selling programs.

CODE FOR FORM
==============
<form name="form1" action="--WEBBOT-SELF--" method="POST">
<!--webbot bot="SaveDatabase" -->
<div style="background-color:#DBE0F5; padding:3px; font:75% arial;">
<b>Survey</b>
</div>
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40"
onfocus="if (this.value=='Insert name'){this.value='';};return false;"
onblur="if (this.value==''){this.value='Insert name';return false;}"/><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address" size="40"
onfocus="if (this.value=='Insert e-mail address'){this.value='';};return false;"
onblur="if (this.value==''){this.value='Insert e-mail address';return false;}"/><br/>
Do you want to join? <br/>
<input type="checkbox" id="yes" value="ON" />Yes <br/>
<input type="checkbox" id="no" value="ON" />No <br/>
<input type="hidden" id="Joining" size="3" />
Select options:<br>
Option 1:<input type="checkbox" id="Bus1" value="ON" />
<br/>
Option 2:<input type="checkbox" id="Bus2" value="ON" />
<br/>
Option 3:<input type="checkbox" id="Bus3" value="ON" />
<br/>
Option 4:<input type="checkbox" id="Bus4" value="ON" />
<br/>
Option 5:<input type="checkbox" id="Bus5" value="ON" />
<br/>
</p>
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100"
style="font:100% Arial;">Enter your comment in here</textarea><br />
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px; font:12px arial;">
<input type="button" id="submit" value=" Send " />
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top