2013年7月27日 星期六

php post / get

php post / get


<body>
<p>
<?
$variable2=$_GET[avariable2];
$variable1=$_GET[avariable1]; // VARIABLE is case sense
$text="this is php text" ;
echo "<br>"; // br is next line
ECHO "</Br>"; // /br is next line
ecHo "$text <br /> "; //HTML IS NOT CASE SENSE
echo "(1) Variable 1 is $variable1 <br />" ;
echo "(2) Variable 2 is $variable2 <br />" ;
if ($variable1 != $variable2) 
{ echo "<center> <h3> Password is not match </h3></center>"} ; 
else { echo "<center> <h3> Password is match </h3></center>" ; 
}
?>
</p>
</body>






In the internet explorer
http://localhost/test240933.php?
avariable1=test1&avariable2=test2
Ie will display 
this is php text 
(1) Variable 1 is test1
(2) Variable 2 is test2
Password is not match


沒有留言:

張貼留言