http://php.flashwebhost.com/sherly/welcome.php
Code:<?php echo '<h1>Hi, ' . $_GET['Neenalaisa'] . '! Welcome to our school.</h1>';
http://php.flashwebhost.com/sherly/welcome.php
Code:<?php echo '<h1>Hi, ' . $_GET['Neenalaisa'] . '! Welcome to our school.</h1>';
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
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.
http://php.flashwebhost.com/stefin/facebook_signup.php
Code:<?php if (isset($_GET['submit'])) { echo '<h1>THANK YOU FOR JOINING Facebook.</h1>'; echo '<br>'; echo '<pre>'; print_r($_GET); echo '</pre>'; } else { echo ' <html> <body> <h1>Welcome To Facebook.</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"> Submit!</button> </form> </body> </html> '; }
An attempt with bootstrap forms and php GET method
http://php.flashwebhost.com/melbin/d...dent_data.html
http://php.flashwebhost.com/melbin/d...ess_report.phpHTML Code:<!DOCTYPE html> <html> <head> <title>STUDENT DATA</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/bootstrap.css" /> <script type="text/javascript" href="js/bootstrap.js"></script> </head> <body> <div class="container"> <div class="row"> <div class="span6 offset3"> <h2 style="text-align:center;">Student Data</h2> </div> </div> <hr> <div class="row"> <div class="span6 offset3"> <form class="form-horizontal" method="GET" action="print_progress_report.php"> <div class="control-group"> <label class="control-label" for="studentname">STUDENT NAME</label> <div class="controls"> <input type="text" id="studentname" name="studentname" placeholder="Enter Student Name"> </div> </div> <div class="control-group"> <label class="control-label" for="std" name="std">STD</label> <div class="controls"> <select name="std"> <option>SELECT STD</option> <option>STD V</option> <option>STD VI</option> <option>STD VII</option> <option>STD VIII</option> <option>STD IX</option> <option>STD X</option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="std">BATCH</label> <div class="controls"> <select name="division"> <option>SELECT BATCH</option> <option>A</option> <option>B</option> <option>C</option> <option>D</option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="language1">FIRST LANGUAGE</label> <div class="controls"> <input type="text" name="language1" placeholder="Enter Mark between 0 and 100"> </div> </div> <div class="control-group"> <label class="control-label" for="language2">SECOND LANGUAGE</label> <div class="controls"> <input type="text" name="language2" placeholder="Enter Mark between 0 and 100"> </div> </div> <div class="control-group"> <label class="control-label" for="physics">PHYSICS</label> <div class="controls"> <input type="text" name="physics" placeholder="Enter Mark between 0 and 100"> </div> </div> <div class="control-group"> <label class="control-label" for="chemistry">CHEMISTRY</label> <div class="controls"> <input type="text" name="chemistry" placeholder="Enter Mark between 0 and 100"> </div> </div> <div class="control-group"> <label class="control-label" for="biology">BIOLOGY</label> <div class="controls"> <input type="text" name="biology" placeholder="Enter Mark between 0 and 100"> </div> </div> <div class="control-group"> <label class="control-label" for="maths">MATHEMATICS</label> <div class="controls"> <input type="text" name="maths" placeholder="Enter Mark between 0 and 100"> </div> </div> <div class="form-actions"> <button type="submit" class="btn btn-primary">Print Progress Report</button> <button type="reset" class="btn">Reset All</button> </div> </form> </div><!-- span6 --> </div><!-- .row --> </body> </html>
PHP Code:
<?php
if (isset($_GET['studentname'])) {
$studentname=$_GET['studentname'];
} else {
echo 'NO NAME';
}
if (isset($_GET['std'])) {
$std=$_GET['std'];
} else {
echo 'No Data Found';
}
if (isset($_GET['division'])) {
$division=$_GET['division'];
} else {
echo 'No Data Found';
}
if (isset($_GET['language1'])) {
$language1=$_GET['language1'];
} else {
echo 'No Data Found';
}
if (isset($_GET['language2'])) {
$language2=$_GET['language2'];
} else {
echo 'No Data Found';
}
if (isset($_GET['physics'])) {
$physics=$_GET['physics'];
} else {
echo 'No Data Found';
}
if (isset($_GET['chemistry'])) {
$chemistry=$_GET['chemistry'];
} else {
echo 'No Data Found';
}
if (isset($_GET['biology'])) {
$biology=$_GET['biology'];
} else {
echo 'No Data Found';
}
if (isset($_GET['maths'])) {
$maths=$_GET['maths'];
} else {
echo 'No Data Found';
}
$gtotal=$language1+$language2+$physics+$chemistry+$biology+$maths;
echo '<hr>';
echo '<b>' . strtoupper($studentname) . ' ' . $std . ' ' . $division . '</b> <br>';
echo 'FIRST LANGUAGE : ' . $language1 . '<br>';
echo 'SECOND LANGUAGE : ' . $language2 . '<br>';
echo 'PHYSICS : ' . $physics . '<br>';
echo 'CHEMISTRY : ' . $chemistry . '<br>';
echo 'BIOLOGY : ' . $biology . '<br>';
echo 'MATHS : ' . $maths . '<br>';
echo '<hr>';
echo '<b> GRAND TOTAL : ' . $gtotal . '<b><br>';
echo '<hr>';
echo '<hr>';
Last edited by melbin; 05-17-2014 at 07:55 AM. Reason: spelling mistake
VIDEO WORLD : LATEST HOLLYWOOD || BOLLYWOOD || SOUTH INDIAN VIDEOS || TRAILERS
@melbin, good script. Try to make simple scripts, so others can learn few things from it. I am sure sibi can make a better bootstrap page, but that only confuse others, some will even stop learning :)
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
http://php.flashwebhost.com/sherly/school_website.php
Code:<?php if (isset($_GET['neenalaisa'])) { echo '<h1>Hi, ' . $_GET['neenalaisa'] . '! Welcome to our school web site.</h1>'; } else { echo ' <html> <body> <h1>Welcome to our school web site.</h1> <p>Please enter you name below and click that button to see our school web site.</p> <form method="GET" action="school_website.php"> Enter Your Name: <input name="neenalaisa" type="text"> <button type="submit">Enter School Web Site</button> </form> </body> </html>'; }
DAY 7 PHP PROGRAMMING
http://php.flashwebhost.com/tom/day_7_ex_2.html
http://php.flashwebhost.com/tom/day_7_ex_2.phpCode:<html> <body> <h1>Welcome to Online Booking Center</h1> <p>Please enter your email id below to book your show.</p> <form method="GET" action="http://www.catchmyseat.com"> Enter Your Email ID: <input name="email" type="text"> <button type="submit">Book Now</button> </form> </body> </html>
Code:<?php echo '<h1>Hello, ' . $_GET['email'] . ' Wecome to Online Booking Center</h1>';
DAY 7 PHP PROGRAMMING
http://php.flashwebhost.com/tom/day_7_ex_3.php
Code:<?php if (isset($GET['email'])) { echo 'Hello, ' . $_GET['email'] . ' Welcome to Online Booking Center'; } else { echo' <html> <body> <h1>Welcome to Online Booking Center</h1> <p>Please enter your email id below to book your show.</p> <form method="GET" action="day_7_ex_2.php"> Enter Your Email ID: <input name="email" type="text"> <button type="submit">Book Now</button> </form> </body> </html>'; }
Bookmarks