0% found this document useful (0 votes)
16 views53 pages

PHP Internship Report New

The document provides a comprehensive guide on installing XAMPP on Windows, including detailed steps for setup and configuration. It also covers how to start a new PHP project, run PHP code, and includes assignments related to PHP functions, variables, operators, arrays, loops, and functions. Additionally, it offers examples and exercises for practical understanding of PHP programming concepts.

Uploaded by

diwanhitesh5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views53 pages

PHP Internship Report New

The document provides a comprehensive guide on installing XAMPP on Windows, including detailed steps for setup and configuration. It also covers how to start a new PHP project, run PHP code, and includes assignments related to PHP functions, variables, operators, arrays, loops, and functions. Additionally, it offers examples and exercises for practical understanding of PHP programming concepts.

Uploaded by

diwanhitesh5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

DAY -1

(01/05/2025)

How To: Install XAMPP on Windows


XAMPP is the most popular PHP development environment.
XAMPP is a completely free, easy to install Apache distribution containing
MariaDB, PHP, and Perl. The XAMPP open source package has been set up to
be incredibly easy to install and to use.

1. You can download XAMPP through the official


website, https://www.apachefriends.org/download.html.
OR
1. Go to the official XAMPP website and download the latest
version of XAMPP for Windows.

2. Launch XAMPP installer xampp–win32x.x.xxxxxx-


installer.exe.
3. Some antivirus applications might interfere in the XAMPP
installation process. So it is recommended to stop your
antivirus application during the installation procedure. After
you have stopped the antivirus, select Yes to continue.

4. Confirm that you will avoid installing the software


to C:\Program Files and press OK. User Account Control (UAC)
might block some XAMPP functions when installing
to C:\Program Files, so it is recommended to install XAMPP to
the default folder.

5. Click Next to start the procedure.


6. Select all components and then click Next.
7. Select the folder to install XAMPP and click Next. It is
recommended to install the software into the default folder.
8. Untick the Learn more about Bitnami for XAMPP checkbox
and click Next.
9. Click Next to launch installation.
10. Wait until the process is finished.
11. Check that the Do you want to start the Control Panel
now? checkbox is ticked and click Finish.
12. After launching XAMPP Control Panel select Config to
open XAMPP settings.
13. Tick the Apache and MySQL checkboxes in the Autostart
of modules section and then click Save.
14. Click Quit to exit the panel and to apply changes.
15. Create a desktop shortcut and then launch the software.
16. Green background around Apache and MySQL marks that
these modules work correctly

17. In the browser address line enter localhost. If you see


the Welcome to XAMPP for Windows! notification, the
environment is set up and ready for work.
How to Set Up and Install PHP for Your Project?
Step 1: Find a web server that supports PHP and MYSQL.
Step 2: Then install PHP from its website.
Step 3: Then install MYSQL DB on your PC.

How to Start a New PHP Project in XAMPP?


• Before you run or start writing any program in PHP, you should
start Apache and MYSQL.
• After starting both servers, you have to write a program in
Notepad.
• After writing it, save that file as "program.php".
• Then copy that file program.php to C:/Program
Files/XAMPP/htdocs.
• Open the browser and type http://localhost.
• Now run your code in that browser.

How to Run a PHP Code Using XAMPP?


Before running a PHP script, you must know where to write it.
In the XAMPP directory, there exists a folder called “htdocs”. This is
where all the programs for the web pages will be stored.
Now, to run a PHP script:
1. Go to “C:\xampp\htdocs” and inside it, create a folder. Let’s call it
“demo”. It’s considered good practice to create a new folder for
every project you work on.

2. Inside the demo folder, create a new text file and name it
“index.php” and write the following script.
3. Now, to see the script output, open the XAMPP control panel and
start Apache to host the local webserver, where our script will be
running.
4. Now navigate to your browser and type in “localhost/demo/” in
the address bar to view the output.

Congratulations, with this, you have created a PHP file and also
executed the program successfully.

Assignments for PHP & Mysql Level 1

1). Echo PHP Function, PHP Variables, If and Switch


Statements

Echo PHP Function


Definition and Usage
The echo() function outputs one or more strings.
Syntax: echo(strings);
Ex.
<?php

echo "Hello World!";


?>

Note: The echo() function is not actually a function, so you are not required to
use parentheses with it. However, if you want to pass more than one
parameter to echo(), using parentheses will generate a parse error.
Tip: The echo() function is slightly faster than print().
Tip: The echo() function also has a shortcut syntax. Prior to PHP 5.4.0, this
syntax only works with the short_open_tag configuration setting enabled.

Variables in PHP
The correct way of declaring a variable in PHP:
$var_name = value;
A variable can have a short name (like $x and $y) or a more descriptive name
($age, $carname, $total_volume).
Rules for PHP variables:
• A variable starts with the $ sign, followed by the name of the variable
• A variable name must start with a letter or the underscore character
• A variable name cannot start with a number
• A variable name can only contain alpha-numeric characters and underscores (A-z,
0-9, and _ )
• Variable names are case-sensitive ($age and $AGE are two different variables)

If and Switch Statements


if statement - use this statement to execute some code only if a specified
condition is true.
Syntax

if (condition) {
// code to be executed if condition is true;
}

Example: 1
Output "Have a good da!" if 4 is larger than 3:
if (5 > 3) {
echo "Have a good day";
}

if...else statement - use this statement to execute some code if a condition is


true and another code if the condition is false.
Syntax
if (condition) {
// code to be executed if condition is true;
} else {
// code to be executed if condition is false;
}

Example: 1

<?php

if (1==1)
{
echo "True";
}
else
{
echo "False";
}

?>

Output "Have a good day!" if the current time is less than 20, and "Have a
good night!" otherwise:
$t = date("H");

if ($t < "20") {


echo "Have a good day!";
} else {
echo "Have a good night!";
}

if...elseif....else statement - use this statement to select one of several


blocks of code to be executed.
Syntax
if (condition) {
code to be executed if this condition is true;
} elseif (condition) {
// code to be executed if first condition is false and this condition is true;
} else {
// code to be executed if all conditions are false;
}

Example
Output "Have a good morning!" if the current time is less than 10, and "Have a
good day!" if the current time is less than 20. Otherwise it will output "Have a
good night!":
$t = date("H");

if ($t < "10") {


echo "Have a good morning!";
} elseif ($t < "20") {
echo "Have a good day!";
} else {
echo "Have a good night!";
}

ARITHMETIC OPERATOR
The PHP arithmetic operators are used with numeric values to perform
common arithmetical operations, such as addition, subtraction,
multiplication etc
Example: 1
<?php

$num1 = 10;

$num2 = 2;

echo $num1 + $num2;

?>

Example: 2

<?php

$num1 = 10;

$num2 = 2;

echo $num1 - $num2;

?>

Example: 3

<?php

$num1 = 10;

$num2 = 2;

echo $num1 / $num2;

?>

Example: 4

<?php

$num1 = 10;

$num2 = 2;

echo $num1 * $num2;

?>
Example: 5

<?php

$num1 = 10;

$num2 = 2;

echo $num1 + $num2 / $num2;

?>

Example: 6

<?php

$num1 = 10;

$num2 = 2;

echo ($num1 + $num2) / $num2;

?>
ASSIGNMENT NO 1

I) Echo PHP Function, PHP Variables, If and Switch Statements

1. Create a page evenodd.php into root directory of your local web server. Here, write a
script for finding out whether it is an odd number or even number and echo on the screen.
The following numbers set can be taken as input: 11, 23, 72 and 44.

Ex. The number 11 is an odd number.

Answer:

<html>
<body>
<?php
$numbers=array(11,23,72,44);
foreach($numbers as $value)
{
if($value%2==0)
{
echo "The Number $value is an Even number<br>";
}
else
{
echo "The Number $value is an Odd number<br>";
}
}
?>
</body>
</html>

Output:

1|Page
2. Create a page vowel.php into root directory of your local web server. Write in the script
for determining whether or not the character associated with a variable is Vowel or a
Consonant. If it’s a Vowel echo out the name of the vowel otherwise echo out its a
Consonant. Use Switch for this script.
Answer:

<html>
<body>
<?php
$ch = 'a';
switch ($ch)
{
case 'a':
case 'A':
echo " $ch is vowel";
break;
case 'e':
case 'E':
echo "$ch is vowel";
break;

case 'i':
case 'I':

echo "$ch is vowel";


break;
case 'o':
case 'O':
echo "$ch is vowel";
break;

2|Page
case 'u':
case 'U':
echo "$ch is vowel";
break;

default:
echo "$ch is consonant";
break;
}
?>
</body>
</html>
Output:

3|Page
II) PHP Operators
1. Write a PHP Script to declare 2 variables with specific numeric value of your choice and
Perform the following operations: Addition, Subtraction, Multiplication and Division. Also
echo out the Result on the screen.

Answer:

<html>
<body>
<?php
$a=10;
$b=2;
echo "Addition is: ".$a+$b."<br>";
echo "Substraction is: ".$a-$b."<br>";
echo "Multiplication is: ".$a*$b."<br>";
echo "Division is: ".$a/$b;
?>
</body>
</html>

Output:

4|Page
2. Write a PHP Script to declare 2 variables with specific numeric value of your choice and
find out the greater number between the two. If the numbers are equal, the respective
message must appear on the screen.

Answer:

<html>
<body>
<?php
$num1=12;
$num2=10;
if($num1==$num2)
{
echo "$num1 is equal to $num2";
}
else if($num1>=$num2)
{
echo "$num1 is greater";
}
else
{
echo "$num2 is greater";
}
?>
</body>
</html>

Output:

5|Page
III) Arrays

1. Declare an array week and assign the value of the days to each index number in the order
of occurrence and echo the result on the screen.

Answer:

<html>
<body>
<?php
$week=array(1=>"Monaday",2=>"Tuesday",3=>"wednesday",4=>"Thursday",5=>"Friday",6
=>"Saturday",7=>"Sunday");
echo $week[1]."<br>";
echo $week[2]."<br>";
echo $week[3]."<br>";
echo $week[4]."<br>";
echo $week[5]."<br>";
echo $week[6]."<br>";
echo $week[7]."<br>";
?>
</body>
</html>

Output:

6|Page
2. Write a PHP script to add the two 2x2 Matrices and output the result.

Answer:

<html>
<body>
<?php

$one=array( array(6,2),array(11,3));

$two=array (array(5,3),array(4,3));

echo "2*2 matrix addition is:<br>";

for($i=0;$i<2;$i++)

for($j=0;$j<2;$j++)

echo $one[$i][$j]+$two[$i][$j]." ";

echo "<br>";

?>

</body>

</html>

Output:

7|Page
IV) Loops
1. Write a PHP Script to print the following pattern on the Screen:

*****
****
***
**
*

Answer:

<html>

<head>

<title>loop</title>

<head>

<body>

<?php

for($i=5;$i>0;$i--)

for($j=1;$j<=$i;$j++)

echo "*";

echo "<br>";

?>

</body>

</html>

8|Page
Output:

2. Declare an array variable "x" assigning it with three elements "one, two and three" and Use
for each loop to print the values of the given array.

Answer:

<html>
<head>
<title>foreach</title>
<head>
<body>
<?php
$x=array("one","two","three");
foreach($x as $value)
{
echo $value."<br>";
}
?>
</body>
</html>

Output:

9|Page
V) Functions
1. Declare and define a function named writeName and within it echo out: Krupa

2. Now call the function to retrieve the following output: My name is Krupa

Answer:

<html>
<body>
<?php

function writeName($name)
{
echo "My Name is $name";
}

writename("Krupa ");
?>
</body>
</html>

Output:

10 | P a g
e
3. Declare a function named writeName2 with a parameter $firstname and define it by
echoing out:
$firstname." Sharma". Now call the function to retrieve the following output:

My name is Jai Sharma


My brother's name is Ram Sharma
Note: Use writeName2 function to write the names on screen.

Answer:

<html>
<head>
<title>function2</title>
</head>
<body>
<?php
$firstname=array(1=>"Jai",2=>"Ram");
function writename2($firstname)
{
echo "MY name is ".$firstname[1]." Sharma"."<br>";
echo "MY Brother's name is ".$firstname[2]." Sharma"."<br>";
}
writename2($firstname);
?>
</body>
</html>

Output:

11 | P a g
e
VI) PHP Special Variables and PHP and HTML

1. If the three sides of a triangle are entered by the user, write a program to check whether the
triangle is isosceles, equilateral, scalene or right angled triangle. Use the 'Get' method to post
the form.

Answer:

<html>
<form action='GET.php' method='GET'>
<h4 style="color:red;">enter side1</h4>
<input type='text' name='side1'><br>
<h4 style="color:red;">enter side2</h4>
<input type='text' name='side2'><br>
<h4 style="color:red;">enter side3</h4>
<input type='text' name='side3'><br>
<h4 style="color:blue;">please click below button to submit:!!</h4>
<input type='submit' value='click here'>
</form>
</html>
<?php
error_reporting(E_ALL);
$side1=$_GET['side1'];
$side2=$_GET['side2'];
$side3=$_GET['side3'];
if($side1 && $side2 && $side3)
{
if($side1!=$side2 && $side1!=$side3 && $side2!=$side3)
{
echo "This is scalane triangle";
}
else if($side1==$side2 && $side1==$side3 && $side2==$side3)
{
echo "This is equilateral triangle";
}
else
{
echo "This is isosceles triangle";
}
}

12 | P a g
e
else
{
echo "please fill all boxes";
}
?>

Output:

2. Create a php page and create a user form which asks for marks in five subjects out of 100
and then displays the marksheet of the student. The format is as follows:

Name of Student*:
Marks in Each Subject
Subject 1* :
Subject 2* :
Subject 3* :
Subject 4* :
Subject 5* :

Total Marks Obtained:


Total Marks:
Percentage:

Note: All the entries marked (*) are to be input by the user. And use a submit button to post
the entries in the form using the POST method.

13 | P a g
e
Answer:

<html>
<head>
<title>MARKSHEET |Krupa kasar</title>
</head>
<body>
<form action='post.php' method='POST'>
<b><p style="color:red;">enter student name :<input type='text' name='Name'></p>
<p style="color:red;">enter 1st subject marks :<input type='text' name='sub1'></p>
<p style="color:red;">enter 2nd subject marks :<input type='text' name='sub2'></p>
<p style="color:red;">enter 3rd subect marks :<input type='text' name='sub3'></p>
<p style="color:red;">enter 4th subject marks :<input type='text' name='sub4'></p>
<p style="color:red;">enter 5the subject marks :<input type='text' name='sub5'></p>
<p style="color:blue;">please click button to submit:!!<input type='submit' value='click
here'></p></b>
<?php
$Name=$_POST['Name'];
$sub1=$_POST['sub1'];
$sub2=$_POST['sub2'];
$sub3=$_POST['sub3'];
$sub4=$_POST['sub4'];
$sub5=$_POST['sub5'];
if($Name && $sub1 && $sub2 && $sub3 && $sub4 && $sub5)
{
echo "Name of Student*: ".$Name."<br>";
echo "marks in each subject:<br>";
echo "Subject 1*: ".$sub1."<br>";
echo "Subject 2*: ".$sub2."<br>";
echo "Subject 3*: ".$sub3."<br>";
echo "Subject 4*: ".$sub4."<br>";
echo "Subject 5*: ".$sub5."<br>";
$total=($sub1+$sub2+$sub3+$sub4+$sub5);
echo "totals mark obtained: ".$total."<br>";
echo "Total Marks: 500<br>";
echo "percentage: ".($total/5);
}

14 | P a g
e
else
{
echo "please fill all details<br>";
}
?>
</form>
</body>
</html>

Output:

15 | P a g
e
ASSIGNMENT NO 2

MYSQL

1. Create a php page and create a user form which asks for marks in five subjects out of 100
and then displays the mark sheet of the student. The format is as follows:

Name of Student*:
Marks in Each Subject
Subject 1* :
Subject 2* :
Subject 3* :
Subject 4* :
Subject 5* :
Total Marks Obtained:
Total Marks:
Percentage:

Answer:

<html>
<head>
<title>MARKSHEET |Krupa kasar</title>
</head>
<body>
<form action='post.php' method='POST'>
<input type='text' name='Name'><br>
<input type='text' name='sub1'><br>
<input type='text' name='sub2'><br>
<input type='text' name='sub3'><br>
<input type='text' name='sub4'><br>
<input type='text' name='sub5'><br>
<input type='submit' value='click here'></p><br>

<?php
require("connect.php");
$Name=$_POST['Name'];
$sub1=$_POST['sub1'];
$sub2=$_POST['sub2'];
$sub3=$_POST['sub3'];

16 | P a g
e
$sub4=$_POST['sub4'];
$sub5=$_POST['sub5'];
$total_marks=500;
if($Name && $sub1 && $sub2 && $sub3 && $sub4 && $sub5)
{
echo "Name of Student*: ".$Name."<br>";
echo "marks in each subject:<br>";
echo "Subject 1*: ".$sub1."<br>";
echo "Subject 2*: ".$sub2."<br>";
echo "Subject 3*: ".$sub3."<br>";
echo "Subject 4*: ".$sub4."<br>";
echo "Subject 5*: ".$sub5."<br>";
$total=($sub1+$sub2+$sub3+$sub4+$sub5);
echo "totals mark obtained: ".$total."<br>";
echo "Total Marks:$total<br>";
$percentage=($total/5);
echo "percentage:".$percentage;
mysqli_query($connect,"INSERT INTO class1 VALUES('
','$Name','$sub1','$sub2','$sub3','$sub4','$sub5','$total','$total_marks','$percentage')");
}
else
{
echo "please fill all details<br>";
}
?>
</form>
</body>
</html>

Output:

17 | P a g
e
2. In the previous assignment use the following data:Name: Rohan Marks in Subject(s):
55,66,77,88,76.
Now write a PHP Script to update the values in the database with the new marks in subject 5
as "99" and recalculating and updating database entries: total obtained and percent.

Answer:

<html>
<head>
<title>MARKSHEET |krupa kasar</title>
</head>
<body>
<form action='post.php' method='POST'>
<input type='text' name='Name'><br>
<input type='text' name='sub1'><br>
<input type='text' name='sub2'><br>
<input type='text' name='sub3'><br>
<input type='text' name='sub4'><br>
<input type='text' name='sub5'><br>
<input type='submit' value='click here'></p><br>

<?php
require("connect.php");
$Name=$_POST['Name'];
$sub1=$_POST['sub1'];
$sub2=$_POST['sub2'];
$sub3=$_POST['sub3'];
$sub4=$_POST['sub4'];
$sub5=$_POST['sub5'];
$total_marks=500;
if($Name && $sub1 && $sub2 && $sub3 && $sub4 && $sub5)
{
echo "Name of Student*: ".$Name."<br>";
echo "marks in each subject:<br>";
echo "Subject 1*: ".$sub1."<br>";
echo "Subject 2*: ".$sub2."<br>";
echo "Subject 3*: ".$sub3."<br>";
echo "Subject 4*: ".$sub4."<br>";
echo "Subject 5*: ".$sub5."<br>";
$total=($sub1+$sub2+$sub3+$sub4+$sub5);
echo "totals mark obtained: ".$total."<br>";

18 | P a g
e
echo "Total Marks:$total<br>";
$percentage=($total/5);
echo "percentage:".$percentage;
mysqli_query($connect,"UPDATE class1 SET sub1='$sub1' where name='Rohan'");
mysqli_query($connect,"UPDATE class1 SET sub2='$sub2' where name='Rohan'");
mysqli_query($connect,"UPDATE class1 SET sub3='$sub3' where name='Rohan'");
mysqli_query($connect,"UPDATE class1 SET sub4='$sub4' where name='Rohan'");
mysqli_query($connect,"UPDATE class1 SET sub5='$sub5' where name='Rohan'");
mysqli_query($connect,"UPDATE class1 SET mark_obtained='$total'
where name='Rohan'");
mysqli_query($connect,"UPDATE class1 SET percentage='$percentage'
where name='Rohan'");

}
else
{
echo "please fill all details<br>";
}
?>
</form>
</body>
</html>

Output:

 BEFORE UPDATING:

19 | P a g
e
 AFTER UPDATING:

20 | P a g
e
ASSIGNMENT NO 3

1 Simple Visitor Counter Implement a Simple Visitor Counter in the Assignment associated
with MYSQL.
Answer:

<html>

<head>

<title> counter</title>

</head>

<body>

<?php

$file=file_get_contents("count.txt");

$visitor=$file;

$visitorsnew= $visitor+1;

$filenew=fopen("count.txt","w");

fwrite($filenew,$visitorsnew);

echo "you had $visitorsnew visitor";

?>

</body>

</html>

21 | P a g
e
 Output:

2 Create a PHP Script which asks for user to enter some random string. Use the appropriate
string functions to display the following operation on the input string.
 Count number of Characters in the string
 . Breaking down a string into an array
 Reverse the string
 Convert all alphabetic characters in string to their lower-case form.
 Convert all alphabetic characters in string to their upper-case form
 Declare a substring and replace the content of substring into original string.

Answer:

<html>

<head>

<title> string1</title>

</head>

<body>

<form action='string1.php' method='GET'>


22 | P a g
e
<input type='text' name='name'><br><br>

<input type='submit' name='submit'>

</form>

</body>

</html>

<?php

$string=$_GET['name'];

if($string)

echo "input string: ",$string,"<br>";

echo "the number character in the input string : ",strlen($string),"<br>";

echo"Reverse of input string: ",strrev($string),"<br>";

echo"lowercase of input string: ",strtolower($string),"<br>";

echo"uppercase of input string: ",strtoupper($string),"<br>";

$substring='bhonsale';echo"replacing the content of substring with original


string:",substr_replace($string,$substring,4),"<br>";

?>

23 | P a g
e
 Output:

3 Create a file upload for and once uploaded display the information of the file uploaded (Ex.
File Name and File Size).

Answer:

<head>
<title> upload</title>
</head>
<body>
<h3>upload file</h3>

<form action='upload1.php' method='POST' enctype='multipart/form-data'>


<input type='file' name='file'><p>
<input type='submit' name='submit'>
</form>
</body>
</html>

24 | P a g
e
<?php
if(isset($_POST['submit']))
{

$name=$_FILES['file']['name'];
$type=$_FILES['file']['type'];
$size=$_FILES['file']['size'];

$temp=$_FILES['file']['tmp_name'];
$store="uploaded/".$name;
$error=$_FILES['file']['error'];
if($error>0)

{
die ("error uploading file $error");
}
else
{
move_uploaded_file($temp,$store);
echo "upload successfullly!!";
echo "name of file: ",$name,"<br>";
echo "size of file: ",$size,"<br>";
echo "type of file: ",$type,"<br>";

echo "temporary strorage folder : ",$store,"<br>";


}
}
?>

25 | P a g
e
 Output:

4 Use the md5 function to encrypt the password entered by the user in a form which submits the
user name and the password of the user and stores the encrypted password along with the
username in a database named data1.

Answer:
<html>
<head>
<title>md5 function</title>
</head>
<body>
<form action="md5.php" method='POST'>
Username<input type='text' name='username'><br><br>
Password<input type='password' name='password'><br><br>
<input type='submit' name='submit' value='submit'>
</form>

26 | P a g
e
</body>
</html>

<?php
$server='localhost';
$user ='root';
$pass='';
$db='data1';
$conn=new mysqli($server,$user,$pass,$db);
if($conn->connect_error)
die('connection failed!!');
if(isset($_POST['submit']))
{
$username=$_POST['username'];
$password=md5($_POST['password']);
$sql="insert into user(username,password)values('$username','$password')";
if($conn->query($sql)==true){
echo 'record saved';
}

else{
echo "error",$sql,"<br>",$conn->query($sql);
}
}
$conn->close();
?>

output:

27 | P a g
e
5 Create a Feedback form which is used to take the feedback along with the following
Information: Name and Email ID. After the successful submission of the form by the user,
a mail is sent to the user thanking him for his feedback and another mail is to be sent to
the administrator consisting of the information provided by the user ie. Name, Email and
Feedback

Answer:

<html>
<form action="feedbackform.php" method="POST">
Name<br><input type="text" name="name"><br>
Email<br><input type="text" name="email"><br>
college name<br><input type="Text" name="college"><br>
rating<br><input type="Number" name="rating"><br><br>
<input type="submit" name="submit">
</form>
</html>

<?php
$name=$_POST["name"];
$email=$_POST["email"];
$collegename=$_POST["college"];
$rating=$_POST["rating"];
$sub="Rating feedback. ... ";
$msg="Thanks for your feedback";
$header="kasarkrupa@gmail.com ";
$ato="kasarkrupa@gmail.com ";
$asub="users feedbak. . ";
$amsg="Name:".$name."\n"."Email:".$email."\n"."College
Name:".$collegename."\n"."Rating:".$rating."\n";
$aheader="From:bhaskardhuri641@gmail.com";
if(mail($email,$sub,$msg,$header)&& mail($ato,$asub,$amsg,$aheader))
{
echo "mail successfuly sent to administrator"."<br>";
echo "mail successfuly sent to ".$email."<br>";

}
else
{
echo "mail not sended. .. !"."<br>";
28 | P a g
e
}?>

Output:

29 | P a g
e

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy