note 101997 rejected from control-structures.if by danbrown
| From: | danbrown@php.net | Date: | Sat, 22 Jan 2011 02:59:56 +0000 |
| Subject: | note 101997 rejected from control-structures.if by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175994@lists.php.net to get a copy of this message | ||
Note Submitter: Justinba1010 at gmail dot com
----
Can anyone tell me whats wrong?
<html>
<body>
<P> Hexavigesimal Translater ALL CAPS PLEASE </P>
<form action="">
1st Digit (lowest): <input type="text" name="1" /><br />
2nd: <input type="text" name="2" Size="1" />
3rd: <input type="text" name="3" />
4th: <input type="text" name="4" />
</form>
</body>
</html>
<?PHP
$1 =$_Post["1"];
$2 =$_Post["2"];
$3=$_Post["3"];
$4 =$_Post["4"];
If ($1="A")
$11= 1 ;
Else If ($1="B"):
$11=2 ;
Else If ($1="C"):
$11=3 ;
Else If ($1="D"):
$11 =4 ;
Else If ($1="E"):
$11=5 ;
Else If ($1="F"):
$11=6 ;
Else If ($1="G"):
$11=7 ;
Else If ($1="H"):
$11=8 ;
Else If ($1="I"):
$11=9 ;
Else If ($1="J"):
$11=10 ;
Else If ($1="K"):
$11=11 ;
Else If ($1="L"):
$11=12
Else If ($1="M"):
$11=13 ;
Else If ($1="N"):
$11=14 ;
Else If ($1="O"):
$11=15 ;
Else If ($1="P"):
$11=16;
Else If ($1="Q"):
$11=17;
Else If ($1="R"):
$11=18 ;
Else If ($1="S"):
$11=19 ;
Else If ($1="T"):
$11=20 ;
Else If ($1="U"):
$11=21 ;
Else If ($1="V"):
$11=22 ;
Else If ($1="W"):
$11=23 ;
Else If ($1="X"):
$11=24 ;
Else If ($1="Y"):
$11=25 ;
Else If ($1="Z"):
$11=0 ;
If ($2="A")
$22= 1 ;
Else If ($2="B"):
$22=2 ;
Else If ($2="C"):
$22=3 ;
Else If ($2="D"):
$22 =4 ;
Else If ($2="E"):
$22=5 ;
Else If ($2="F"):
$22=6 ;
Else If ($2="G"):
$22=7 ;
Else If ($2="H"):
$22=8 ;
Else If ($2="I"):
$22=9 ;
Else If ($2="J"):
$22=10 ;
Else If ($2="K"):
$22=11 ;
Else If ($2="L"):
$22=12
Else If ($2="M"):
$22=13 ;
Else If ($2="N"):
$22=14 ;
Else If ($2="O"):
$22=15 ;
Else If ($2="P"):
$22=16;
Else If ($2="Q"):
$22=17;
Else If ($2="R"):
$22=18 ;
Else If ($2="S"):
$22=19 ;
Else If ($2="T"):
$22=20 ;
Else If ($2="U"):
$22=21 ;
Else If ($2="V"):
$22=22 ;
Else If ($2="W"):
$22=23 ;
Else If ($2="X"):
$22=24 ;
Else If ($2="Y"):
$22=25 ;
Else If ($2="Z"):
$22=0 ;
$100 = ($11*1) + ($22 * 26^2);
Echo "$100";
?>
Contact me at Justinba1010@gmail.com to tell me
Thank You