Please turn on javascript in your browser to play chess.
Developers Forum

Developers Forum

  1. 13 Apr '06 20:15 / 2 edits
    Ive been trying to make a login thing that just opens a page on my site.. Nothing fancy, just so it asks for a username and password, if its correct then it opens a page called loggedin.shtml - but I cant do it...

    To see my code so far: (the exclamtation mark in it is acctually the address, not a typo)
    http://www.michaelboyd.org.uk/logmeinpls!.txt

    To see the error:
    http://www.michaelboyd.org.uk/logmeinpls.php

    Edit: great... I cant post code here... erm hold on a sec
    Edit: use the link above to see the code
  2. Standard member coentje
    Plop!
    13 Apr '06 20:45
    It has been a while since i have done anything in php but you are mixing up html and php code all over the place.

    Anything inside the tags needs to be php code. If you want to put in some html you need to close your php block and open it again when you are done with you html.

    Hope that answers your question.
  3. 13 Apr '06 20:46
    Oh right thanks. I thought you could just leave php open and html inside it would be seperated.
    Thanks
  4. Standard member coentje
    Plop!
    13 Apr '06 20:51
    Originally posted by Caro Kann
    Oh right thanks. I thought you could just leave php open and html inside it would be seperated.
    Thanks
    ur welcome,

    Hope you get it to work