Quote Originally Posted by stefin View Post
http://php.flashwebhost.com/stefin/facebook_signin.php

Code:
<?php

if (isset($_GET['signin'])) {

echo 'THANK YOU FOR JOINING FACEBOOK';

}

else {

echo '

<html>
<body>

<h1>Welcome To Facebook</h1>

<h2>Its Free And Always Will Be</h2>
  
<form action="welcome.php" method="GET">

Enter First Name : <input name="first name" type="text">

</form>

';}

{

echo '

<form action="welcome.php" method="GET">

Enter Last Name : <input name="last name" type="text">



</form>

';}

{

echo '

<form action="welcome.php" method="GET">

Enter Your Email : <input name="email" type="text">


</form>

';}

{

echo '


<form action="welcome.php" method="GET">

Re-Enter Your Email : <input name="re-enter email" type="text">



</form>

';}

{

echo '

<form action="welcome.php" method="GET">

Enter Your Password : <input name="password" type="text">



</form>

';}

{

echo '

<form action="welcome.php" method="GET">

Enter Your Birthday : <input name="birthday" type="text">

<h2><button type="SIGN UP"> SIGN UP </button></h2>

</form>

</body>
</html>

';}

Very nice try, thinking out of the box.

When you need to use more than one input form, you don't need to repeat

Code:
<form
part multiple times. Only ONE FORM is needed. Here is updated code.

PHP Code:
<?php

if (isset($_GET['submit'])) {
    echo 
'<h1>THANK YOU FOR JOINING DRAGON CITY.</h1>';
    echo 
'<br>';
    echo 
'<p>You submitted following data, please take a print out and keep it safe.</p>';
    echo 
'<pre>';
    
print_r($_GET);
    echo 
'</pre>';
} else {

    echo 
'
    <html>
    <body>

    <h1>Welcome To Dragon City.</h1>

    <p>Its Free And Always Will Be</p>

    <form action="" method="GET">

    Enter First Name : <input name="first name" type="text"><br>
    Enter Last Name : <input name="last name" type="text"><br>
    Enter Your Email : <input name="email" type="text"><br>
    Re-Enter Your Email : <input name="re-enter email" type="text"><br>
    Enter Your Password : <input name="password" type="text"><br>
    <button type="submit" name="submit">Play Now!</button>

    </form>

    </body>
    </html>
    '
;
}
NOTE: button type need to be submit.