close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dreamweaver and php pages

Thread began 2/11/2015 1:33 pm by dmrick44 | Last modified 2/12/2015 2:40 pm by dmrick44 | 1482 views | 4 replies |

dmrick44

Dreamweaver and php pages

When I created my Registration and LogIn pages, Dreamweaver insisted that I have a php page open before I could create a database connection.

So I simply created a "Untitled-1.php" page and saved it. Now I'm trying to get things organized so that I can set up my Registration and LogIn Redirects... and so I don't want to have to edit names later. Why does Dreamweaver insist on there being an open php page when it doesn't seem to do a thing to it? After creating all of the Registration and LogIn pages, can that first php page be deleted?

My site's home page will be index.html where one will either go Register, or go LogIn. With a successful LogIn they'll be redirected to a different html page that would normally look like a home page, with info, links, etc.

I guess what I'm asking is, how would you set things up?... What's the standard practice?
Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Dreamweaver needs tho have a PHP page open so that it knows 2 things?

1) What Dynamic language you are using
2) What site it should be using.

normally, with a dynamic site, all pages would be php, so instead of having index.html, you would have index.php

then opening that page, you would start the Security Assist wizard.

Security Assist cannot add access restriction to a .html page, so it really does not make sense to redirect after login to an html page, that page would be accessible whether the user is logged din or not.

The standard practice would be:

Open index.php and start the security assist wizard.

after the security assist wizard is completed, it will open the access pages manager, select the php pages that should only allow access to logged in users and apply the logged into <your users table> access rule.

if you want to change the redirection for login success, open the login page, open the server behaviors panel, and double click the Security Assist Authenticate user server behavior to change the login success page.

Sign in to reply to this post

dmrick44

In my case I don't want anyone to access any pages except Registration and LogIn (or failure to login) and so all of my pages should end in php and I should use the Access Pages Manager and set all other pages to "Logged in to users."

So, my index.php page will have the usual graphics and only a "Register..." and a "LogIn" link on it. Once a person successfully logs in they can then be redirected to something like "main.php" with its access set to "Logged in to users." Right?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, if all pages in your site should be protected, then they will all need to be php pages with the Logged into users access url applied.

you can set the logged into users access rule to redirect to the login page.

Sign in to reply to this post

dmrick44

Just got my Register and LogIn pages working. I wanted to have a person log in with a username rather than an email, but the way I was doing it must have been the reason things weren't working right. When creating the various security pages, I went inside the "Manage Pages" tab and and changed User name to UserID... display as Text... and made it a required input... Which showed "Username" instead of "Email" on the Register and LogIn pages, but didn't really work well.

Want to let others know that when I first considered purchasing you product, I hesitated at the price, but now after purchasing it and seeing how powerful it is, anyone considering building a website should definitely have this program!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...