DAY 7 PHP PROGRAMMING

http://php.flashwebhost.com/ramesh/d...et_method1.php

PHP Code:
<?php
  
  
if (isset($_GET['login'])) {
    echo 
'<h1>Login Success!!</h1>';
    echo 
'<br>';
    echo 
'<pre>';
    
print_r($_GET);
    echo 
'</pre>';

else {
    echo 
'

<style>
body {    
    background: #464646;
    font: 14px;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}
.form {
    width: 250px;
    height:230px;
    background: #fff;
    color: #777;    
}


.formtitle {
    padding: 10px;
    line-height: 16px;
    font-size: 13px;    
    color: #000;
    font-weight: bold;
    border-bottom: 1px solid #eb8d19;
    width: 230px;
    }


.inputtextbox {
    width: 200px;
    margin-bottom: 10px;
    margin: 20px;
    overflow: hidden;
}
.inputtext {    
    line-height: 18px;    
    width: 120px;
}

.buttons {
    background: #f1f1f1;
    border-top: 1px solid #ddd;
    padding: 15px;
    height: 34px;
}
</style>
<html>
<body>
<form class="form" method="GET" action="loginsuccess.php">

            <div class="formtitle">Login to your account</div>

            <div class="inputtextbox">
                <div class="inputtext">Username: </div>
                <div class="inputcontent">

                    <input type="text" />

                </div>
            </div>

            <div class="inputtextbox">
                <div class="inputtext">Password: </div>
                <div class="inputcontent">
                    <input type="password" />
                    <br/>

                </div>
            </div>

            <div class="buttons">

                <input type="submit" value="Login" />

                <input type="submit" value="Cancel" />

            </div>

        </form>

        </body>
</html>

'
; }





http://php.flashwebhost.com/ramesh/d...ginsuccess.php

PHP Code:
<?php

echo '<font color=green><h1>Login Success.........................<h1></font>';


echo 
'<br>
<html>
<body>
<div> 
<form action="get_method1.php">
<input type="submit" value="Logout" />
</form>
</div>
</body>
</html>'