My Name Is Salman Masood , I am Computer Science &Amp; Maths Graduate from University of Karachi, Pakistan , Teaching Is My Passion and My Aim Is to Deliver All My Knowledge among Those Students Who Can'T Afford Tutors or Expensive Institute Fees. I Will Be Keep Sharing My All Knowledge and Information with You .... Remember Me in Your Prayers !
Wednesday, 6 June 2018
$_Get method in php (Super Global variable)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<form method="get">
<input type="text" name="fname"/>
<input type="text" name="email"/>
<button type="submit" value="submit"> Submit </button>
</form>
<?php
if($_SERVER['REQUEST_METHOD']=="GET")
{
$name= $_GET['fname'];
$email= $_GET['email'];
if(empty($name) || empty($email) )
{
echo "<P style='color:red'> No name present..... </p>";
}
else
{
echo "<P style='color:red'> Name : ".$name." </p>";
echo "<P style='color:red'> email : ".$email." </p>";
}
}
?>
</body>
</html>
Subscribe to:
Post Comments (Atom)
Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC
Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...
-
Load event: pictureBox3.Image = Image .FromFile( @"C:\Users\salman\Documents\Visual Studio 2013\Projects\WindowsFormsApplication3\W...
No comments:
Post a Comment