CS310- Assignment Solution!!!
if you wanna check this code then follow the step bellow1- copy the code of first file and past in note pad file. save it in "htdoc" folder under the xamp server folder with the .html extension.. If you don't install server then i recommend you to install it first.
2- then copy next file code and paste it in another file and save it in the same htdoc folder with the exetention .php .
3- start your server
4- go to you browser, type" http://localhost/fileName.html " and press enter
a form will appear, fill the form and press submit button and then take the screen shot .
See How to Dawnload Assignment file of CS301!!!
I recommend you to download the given file because it is checked and screen shot is putted in it. its complete assignment. The file is just bellow!!!
---------------------Copy bellow text and past in word file-----------------------------------------------------
file name assingment.html
<html>
<head>
<title></title>
</head>
<body>
<form action="fileName.php" method="post">
customer ID: <input type="text" name="Id"><br>
costomer Name: <input type="text" name="Name">
<br>
billiing Address: <input type="text" name="Add">
<br>
postal Code: <input type="text" name="Code">
<br>
voucher Price: <input type="text" name="Price">
<br>
<input type="submit">
<br>
</form>
</body>
</html>
file name fileName.php
<html>
<body>
<?php
$Id= $_POST["Id"];
$Name= $_POST["Name"];
$Pric= $_POST["Price"];
$Add= $_POST["Add"];
$Code= $_POST["Code"];
?>
<p>
I - Customer ID is "<?php print $Id; ?>" and name is "<?php print $Name; ?>"<br>
II - Billiing address of customer is "<?php print $Add; ?>" while postal code is <?php print $Code; ?><br>
III - Customer "<?php print $Name; ?>" purchase items of price "<?php print $Pric; ?> Rs/-"
<br><br>
Length of costumer name is : <?php print strlen($Name); ?><br>
Total word count in billing addres is: <?php print str_word_count($Add); ?><br>
After Reverse costumer name: <?php print strrev($Name); ?>
</p>
</body>
</html>
Screen Shoot |
if you like my efforts please feel free to subscribe my channel and also follow my website for getting notification on every assignment solution.