Jump to content

bytes

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by bytes

  1. How can I make my login form from the simple one to this : The stylesheet code is body { background-color:#000000; font-family:Tahoma, sans-serif; font-size:13px; text-align:center; color:#E7E7E7; } a { color:#E7E7E7; } #web { width:90%; margin:0 auto; padding:10px; text-align:left; background:#171717; } #header { padding:5px; font-size:16px; font-weight:bold; } #footer { text-align:center; font-size:12px; } #logstable { width:100%; font-size:13px; } #logstable a{ width:100%; font-size:13px; } #searchtable { width:100%; font-size:13px; } #logintable { margin:0 auto; border-color:#E7E7E7; border-style:solid; border-width:1px; font-weight:bold; font-size:14px; } #row0 { background:#E7E7E7; color:#171717; font-weight:bold; } #row0 a{ color:#171717; font-weight:bold; } .row1 { background:#373737; } .row2 { background:#666666; } #navigation { margin:0px; padding:0px 0px 0px 0px; background:#373737; height:33px; } #navigation li { float:left; clear:none; list-style:none; } #navigation li a { color:#F7F7F7; display:block; padding:10px 18px; text-decoration:none; font-weight:bold; } #navigation li a:hover { color:#FFFFFF; background:#171717; } input { background-color:#373737; border-color:#E7E7E7; border-width:1px; border-style:solid; color:#E7E7E7; } select { background-color:#373737; border-color:#E7E7E7; border-width:1px; border-style:solid; color:#E7E7E7; } .page0 { height:19px; background-color:#373737; border-color:#E7E7E7; border-width:1px; border-style:solid; color:#E7E7E7; } .page0 a { text-decoration:none; } .page1 { height:19px; background-color:#171717; border-color:#373737; border-width:1px; border-style:solid; color:#373737; } #pages { font-size:14px; font-weight:bold; margin-top:5px; height: 20px; } #numbers { float:left; } #delete { float:right; }
  2. I completed my login script consist of two php. Index.php <html> <body> <form id="form1" name="form1" method="post" action="login.php"> <div align="center"> <p>Username : <input type="text" name="username" /> </p> <p>Password : <input type="text" name="password" /> </p> <p> <input name="Submit" type="submit" id="Submit" value="Login" /> </p> </div> </form> </body> </html> Login.php <?php $user = "admin"; $pass = "admin"; if ($_POST['username'] == $user and $_POST['password'] == $pass) { echo 'Successfully login.'; } else { echo 'Invalid username/password.'; } ?> I want to make a login script that use session and after I login it will shows me the control panel. Thanks
  3. Sorry to disturb anyone on helping me. Thanks I solved it by using file_get_contents.
  4. Can anyone teach me how can I include it ? I know only include('get.php')
  5. I just want the text from get.php to appear on index page. I think it would be echoing.
  6. I knew include but how can I put the fetched data on my index page.
  7. Hi there. I would like to ask how can I fetch the info from another page to a page. For instance : - There is a page called index.php. I want to put the data fetched from a page called get.php Get.php contains some text. I will give some more to you all.
  8. bytes

    Hi all !

    Hi , I'm bytes. I love to learn php. That is the reason why I join this forum. I hope I will learn and master PHP. Thanks for reading my introductions.
×
×
  • 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.