Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DWMX/PHP user authentication problem

Status
Not open for further replies.

superplay

Technical User
Jun 4, 2002
2
CA
I'm using Dreamweaver Mx, PHP/MySQL server model. I use MX because I'm not a strong programmer at all. This is the first dynamic website I've built 100% on my own.

I have already created the bulk of the site including the registration, results list, detail, update and delete pages.
Now that I need to setup the login and site restriction aspect of the site, I find that MX doesn’t offer the "User Authentication" Server Behaviors for PHP.
I have found PHAkt2 MX from Interakt. However, I'm not exactly sure how to use it with my current connection and coded pages.

I need some help in determining what to do from here.
· Is there a simple way of getting PHAkt2 MX (or any similar product) to merge with my existing site so that I may gain from its benefits?
· Do I need to start over?
· Would you know where I could find easy to understand PHP 'scripts' that will enable me to complete the user authentication portion of my site?

I'd appreciate any suggestions. Thank you.
Tony
 
I had a problem with using authentication on my site because my corporate security wouldn't let me use whatever variables it is that DWUD usually uses. Here's the work around I did. I made a table (Users) of the users login ID's and a flag (I think I used the number 1 or something). I built a recordset w/ the following SQL
SELECT *
FROM dbo.Users
WHERE UID = '#cgi.remote_user#'
If the user that is logged in '#cgi.remote_user#' is not on the table, the recordset is then null, so, DWUD has a little server behavior where you can enter text that will show up if a recordset is null. If the logged in user is in the table, there's another behavior for that. If you learn a little about <cfif> statements, you can do quite a bit this way. It's not perfect, but it works. Scott Neth
Web Designer/Cyberpunk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top