MULTIPLE BUTTON USE
We are committed to sharing the latest and most innovative web design codes and designs. Our goal is to provide valuable resources for web designers and developers, offering a collection of cutting-edge HTML, CSS, JavaScript, and PHP code snippets, along with visually stunning design concepts. Whether you're a seasoned professional or just starting in web development, our platform is your go-to source for inspiration, learning, and enhancing your web design skills.
MULTIPLE BUTTON USE
LOGIN
<form action="login.php" method="get"> Enter the password:<input type="password" name="pass" ><input type="submit" name="submit" ></form>
<?php
<h2>Array</h2>
<?php
$ar=array(array(102,"shiva",50,60,120),
array(103,"shiva",50,64,120),
array(104,"shiva",50,67,120),
array(105,"shiva",50,623,120));
for ($i=0; $i<4; $i++)
{
for ($j=0; $j<4; $j++)
{
echo "".$ar[$i][$j];
}
echo "<br>";
}
?>
<h3>For each for table use</h3>
<?php
$ar=array(102,"jatin",50,60,120);
echo "<table border=1><tr>";
foreach ($ar as $i) {
echo "<tr><td>".$i."</td></tr>";
}
echo "</tr></table>";
?>
<h3>For each loop use for nested foreach</h3>
<?php
$ar=array(array(192,'shiva',50,39,17),
array(192,'shiva',50,39,17),
array(192,'shiva',50,39,17),
array(192,'shiva',50,39,17));
echo"<table border=1 bordercolor=red>";
foreach ($ar as $i) {
echo "<tr>";
foreach ($i as $j) {
echo "<td>".$j."</td>";
}
echo "</tr>";}
echo "</table>";
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form action="self.php">
Name:<input type="text" name="t1"><br>
Age:<input type="number" name="t2"><br>
Email Address:<input type="text" name="t3"><br>
Password:<input type="password" placeholder="Enter Your password here" name="t4"><br>
<input type="submit" name="submit">
</form>
</body>
</html>
<?php
if (isset($_GET['submit'])) {
echo "Name:-".$_GET['t1']."<br>";
echo "Age:-".$_GET['t2']."<br>";
echo "Email:-".$_GET['t3']."<br>";
echo "Password:-".$_GET['t4']."<br>";
}
?>