Jump to content

Deon

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Deon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you so much to the both of you. I have uploaded my test files to my server and it works perfectly well. Maybe there is something wrong with the settings/installation of PHP on my testing PC. Thank you again! Regards, Deon
  2. Thank you so much!!! This is exactly 100% what I needed. Why do I get this message? Notice: Undefined index: MM_Username in c:\Inetpub\wwwroot\sincro\members\member-login.php on line 277 when not logged in? Apart from this message, your suggestions work 100% and perfectly well. This is line 277: <?php if ($_SESSION['MM_Username'] != "") { ?> Regards, Deon
  3. Hi there, DW 8.0.2, PHP & mySQL I use this in my ASP VBScript pages which I got from a NG. [i] [b]<% if Session("MM_Username") <> "" then %>[/b] <Strong>Welcome <%= Session("MM_Username") %>< /strong><br> <A HREF="<%= MM_Logout %>">Log Out</A> [b]<%End If %>[/b] [b]<% if Session("MM_Username") = "" then %>[/b] <form name="form1" method="post" action="<%=MM_LoginAction%>"> <table width="150" border="0" cellspacing="0" cellpadding="3"> <tr> <td><b>Name:</b> <input type="text" name="txtName"> </td> </tr> <tr> <td><b>Password:</b> <input type="password" name="txtPassw"> <br> <font size="2"> <input type="checkbox" name="checkbox" checked> remember me<br></font></td> </tr> <tr> <td align="center"> <input type="submit" name="Submit" value="log in &gt;&gt;"> </td> </tr> </table> </form> </td> </tr> </table> [b] <%End If %>[/b] [/i] This works perfectly well for me. What it does is to welcome a visitor with his/her registrated name once logged in together with a Log out link. The log out is done with DW. If the visitor is NOT logged in, it presents the visitor with the login form. How can I accomplich the same with PHP? I will REALLY appreciate your help. Regards, Deon
  4. [!--quoteo(post=375986:date=May 22 2006, 10:55 AM:name=jeremywesselman)--][div class=\'quotetop\']QUOTE(jeremywesselman @ May 22 2006, 10:55 AM) [snapback]375986[/snapback][/div][div class=\'quotemain\'][!--quotec--] If you are familiar with ASP, you should be able to easily conver this code to php. Just a slight chage of syntax. [code] <?php } else {      [color=#CC0000]include('../includes/incl_logout.php')[/color]; } ?>[/code] [/quote] Jeremy, how can I insert a table in the red coded space. When I try to just insert a table there, I get errors of missing omjects. Regards, Deon [!--quoteo(post=375986:date=May 22 2006, 10:55 AM:name=jeremywesselman)--][div class=\'quotetop\']QUOTE(jeremywesselman @ May 22 2006, 10:55 AM) [snapback]375986[/snapback][/div][div class=\'quotemain\'][!--quotec--] If you are familiar with ASP, you should be able to easily conver this code to php. Just a slight chage of syntax. [code] <?php } else {      [color=#CC0000]include('../includes/incl_logout.php')[/color]; } ?>[/code] [/quote] Jeremy, how can I insert a table in the red coded space. When I try to just insert a table there, I get errors of missing objects. Regards, Deon
  5. Jeremy, thank you so much for this reply. I REALLY appreciate your reply. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Regards, Deon
  6. Hi there, This is my 1st attempt with the following in PHP. Here is the code in ASP: <% if Session("MM_Username") = "" then %> Visitor! <%End If %> <% if Session("MM_Username") <> "" then %> <!--#include file="../includes/incl_logout.asp" --> <%End If%> How does this look in PHP? I have no idea and it seems that no one can help me out. This is the same as with this forum. When I am not logged in, the login option shows. When I am logged in, My name together with the Log Out option shows. I have noticed that with this forum it is done with different <div> tags, but it does not need to be the same with my script. I will really appreciate your help. Regards, Deon
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.