Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are to create a PHP code that wil interact with homework\'s 1 HTML form. An

ID: 3598521 • Letter: Y

Question

You are to create a PHP code that wil interact with homework's 1 HTML form. An example of a form submitted is given below A1-part1 W Barack Obama - Wikipedxe PHP: isset - Manual x x c localhost/solAlform.html Please Enter Your Details For Our Dating Website! Your Fac Your image: Choose File Obama ipg Image preview Your General Details Name: Barack H Obama Gender: Male O Female Age: 55 Date of birth: e/04/1961 Favorite color Which country: America Your Indicators Tall Height: Short Salary: Poor Your Contact Information Email Mobile: 1-800-POTUS Rich usa org Address Method to contact you: Email Whatsapp In-app-chat Minimum requirements of the inputs 1. 2. 3. 4. 5. 6. The file input with a JPEG picture. The Name input with a string input. The Gender input: either Male or Female is selected. Country select list input should have a country selected. Height range input should be set. Salary range input should be set.

Explanation / Answer

<html>
<body>
<form action="profile.php" method="GET" enctype="multipart/form-data">
<H2>Please Enter Your Details For Our Dating Website!</H2>
<br>
<H3>Your Face</H3>
<br>
Your image:<input type=file name="f1"><br>
Image Preview:<br>

<H3>Your General Details</H3><br>
Name<input type=text name="t1"><br>
Gender:
<input type=radio name="r1" value="Male">Male
<input type=radio name="r1" value="Female">Female
<br>
Age:<input type=text name="t2"><br>
Date Of Birth:<input type=text name="t3"><br>
Favorite Color:<input type=text name="t4"><br>
Which Country:
<select name="s1">
<option value="India">India
<option value="America">America
<option value="Japan">Japan
<option value="China">China
</select>
<br>

<H3>Your Indicators</H3><br>
Hieght: Short to Tall<br>
Salary: Poor to Rich<br>

<H3>Your Contact Information</H3><br>
Email:<input type=text name="e1"><br>
Mobile:<input type=text name="e2"><br>
Address:<input type=textarea name="e3"><br>
Method to contact you:
<input type=checkbox name="c1" value="email">
<input type=checkbox name="c2" value="whatsapp">
<input type=checkbox name="c1" value="In-app-chat">
<br>

<input type=submit value="submit">
</form>
</body>
</html>

profile.php


<?php
$image=$_FILE["f1"]["name"];
$name=$_GET['t1'];
$gender=$_GET['r1'];
$age=$_GET['t2'];
$D.O.B=$_GET['t3'];
$color=$_GET['t4'];
$country=$_GET['s1'];
$email=$_GET['e1'];
$mobile=$_GET['e2'];
$addr=$_GET['e3'];

echo "<H1>Thank you $name for creating a profile in our dating website!</H1><br>"
echo "<center>A confirmation email will be sent to you shortly at $email.</center><br>"
echo"Your Picture:<img src="$image" width=200 height=200>"
echo"Your Information:<br>"
echo"$gender<br>";
echo"$Born in $D.O.B<br>";
echo"$gender<br>";
echo"Country of Birth:$country<br>";
echo"Hight:183 cm<br>";
echo"Salary: 88K USD.<br>";
echo"Phone: $mobile";
if(isset($_GET['c1']))
{
$em=$_GET['c1'];
echo" $em<br>";
}

if(isset($_GET['c2']))
{
$wsp=$_GET['c2'];
echo" $wsp<br>";
}

if(isset($_GET['c3']))
{
$inapp=$_GET['c3'];
echo" $inapp<br>";
}

?>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote