Skip to main content
Participating Frequently
March 11, 2022
Answered

Create a Dreamweaver 2022 login

  • March 11, 2022
  • 3 replies
  • 1087 views

I have been on Adobe and GoDaddy tech support for 2 days, almost solid trying to gets the steps to make my login page work. The site is up: lakecityharmonizers.org, but I can't complete the members login page. Any help ASAP would be really appreciated. Adobe justs sends me links that don't help this simple mind. Thank you, in advance.

 

In addition, I can't get to my server through Dreamweaver, only through GoDaddy, so I can't test easily or work with the database I think I need for login to work.

 

[Attached file removed by moderator due to sensitive content.]

This topic has been closed for replies.
Correct answer Nancy OShea

Ben, The site opens now but you can see the login page is inop. I like Nancy's suggestion to protect the directory but don't want to protect the index page, just the members-only area beyond. As I read it, I can't restrict just one page, so that won't work. Thanks to you both for trying to help me.


quote

As I read it, I can't restrict just one page, so that won't work.


By @Mr Thackston

==========

No, no, no.  Your site will be defined twice in DW.  The public site and the Members only site.

 

You create a Members folder on your server and password protect it.  Everything inside the Members folder is protected. 

Everything outside Members folder (domain name landing page, contact page, about us, etc...) is publicly accessible. 

Make sense?

 

 

 

 

3 replies

Participating Frequently
March 12, 2022

Thank you, Nancy.

Nancy OShea
Community Expert
Community Expert
March 11, 2022

I removed your attached file for security reasons. You posted sensitive information in a public user-to-user community.  This is not Adobe technical support.  

 

In the future, please do not post sensitive information here.  Anybody could see it and exploit it.

 

Regarding your remote server's S/FTP connection details, I'm pretty sure GoDaddy sent you that in an email.  If it fails to connect to server, try using free FileZilla client.

https://filezilla-project.org/download.php

 

If Filezilla can't connect to your server, go back to GoDaddy.

 

 

Nancy O'Shea— Product User & Community Expert
Participating Frequently
March 13, 2022

After several hours of waiting on both Adobe and GoDaddy Chats and sending them several screen shots, one guy took only a few minutes to resolve my connection issues. I have downloaded and installed MAMP and have set up a local test server, but I'm still lost on how to proceed. I have created the login page but need to create a table on my host and somehow connect the form with the table. That's how much I know, enough to be dangerous.

Nancy OShea
Community Expert
Community Expert
March 13, 2022

Use your local server's phpMyAdmin app to create your MySQL database.  

http://webvaultwiki.com.au/Default.aspx?Page=Create-Mysql-Database-User-Phpmyadmin

 

After your local database & table is created, open DW and go to File > New > PHP document.  Paste the following code and save as TEST.php

 

<?php
$con = mysqli_connect("localhost","your_username","your_password","database_name");

// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
		}
		else echo "Successfully connected, happy coding!"
?> 

<?php phpinfo() ?>

 

With Mamp server running, test the localhost connection by right-clicking on tab and select Open in Browser.

 

Your hosting plan's server probably uses phpMyAdmin too.  Let's hope so. Once your local database and tables are created & populated with something you can export data to SQL file.  Then log-in to your remote server's phpMyAdmin panel and import the SQL file.

 

That's the short version.  Creating a log-in page is only one small slice of a very big pie.  If you've never done this before, hiring a professional would be money well-spent.  You must build a registration system, 2-factor authentication is highly recommended, there must be a way for users to change passwords,  or get new passwords if they ever forget theirs, etc...

https://www.tutorialrepublic.com/php-tutorial/php-mysql-login-system.php

 

Nancy O'Shea— Product User & Community Expert
Nancy OShea
Community Expert
Community Expert
March 11, 2022

1.  Which server-side scripts are you using for your login?  We can't see scripts in browsers for security reasons.

 

2. Did you install a local testing server on your computer yet?  The popular ones are Wamp, Xampp or Mamp. 

 

3. Did you define your local testing server in Dreamweaver yet?  For screenshots, see my reply to this discussion from yesterday.

https://community.adobe.com/t5/dreamweaver-discussions/can-any-one-please-tell-me-how-to-set-up-testing-server-working-with-laragon/td-p/12803192

 

In order for a log-in to work, the scripts must be compatible with your hosting plan and a database is usually required to store usernames and passwords.

 

I also highly recommend you get SSL/TLS certificates installed on your remote server for better web security.  HTTPS is essential these days.  Otherwise users will see "This site is not secure" warnings like this:

 

 

GoDaddy has various SSL Plans.

https://www.godaddy.com/help/compare-ssl-plans-and-pricing-32059

 

Nancy O'Shea— Product User & Community Expert