Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
http://php.flashwebhost.com/sherly/eyedonation.php
Code:<?php if (isset($_GET['email'])) { echo 'eye donation request has been received' ; } else { echo ' <h1>Eye Donation</h1> <p>if you wish to donate your eyes, enter your name.</p> <form action="eyedonation.php" method="GET"> Enter Email Address : <input name="email" type="text"> <button type="submit"> Subscribe </button> </form> ';}
http://php.flashwebhost.com/annie/health_tips.php
Code:<?php if (isset($_GET['email'] )) { echo 'Subscribe to our free email updates!'; } else { echo ' <h1> Helpful Tips.</h1> <p>Please enter your email address below and get Daily Health Tips </p> <form method="GET" action="health_tips.php"> Enter Your Email Address: <input name= "email" type="text"> <button type="submit"> Subscribe</botton> </form> '; }
http://php.flashwebhost.com/sherly/poor_charity.php
Code:<?php if (isset($_GET['email'] )) { echo 'poor charity request has been received' ; } else { echo ' <h1> Poor Charity.</h1> <p>Please enter your email address below and to help poor charity </p> <form method="GET" action="poor_charity.php"> Enter Your Email Address: <input name= "email" type="text"> <button type="submit"> Subscribe</botton> </form> '; }
http://php.flashwebhost.com/sherly/result.php
Code:<?php $rollNo1 ='Student Name'; $mark ='Student Mark'; if (isset($_GET['rollNo1'] )) { echo ' Name : ' . $rollNo1 . '<br>'; echo ' Mark : ' . $mark . '<br>'; echo '<hr> '; echo ' result here - passed/failed'; } else { echo ' <h1>Medical Entrance Exam Result</h1> <p>Please enter roll No.</p> <form action="result.php" method="GET"> Roll No : <input name="rollNo1" type="text"> <button type="submit">submit </button> </form> ';}
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> ';}
Last edited by stefin; 05-16-2014 at 03:06 PM.
http://php.flashwebhost.com/sherly/welcome.php
Code:<?php echo '<h1>Hi, ' . $_GET['Neenalaisa'] . '! Welcome to our school.</h1>';
Very nice try, thinking out of the box.
When you need to use more than one input form, you don't need to repeat
part multiple times. Only ONE FORM is needed. Here is updated code.Code:<form
NOTE: button type need to be submit.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>
';
}
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
Bookmarks