note 101997 added to control-structures.if
| From: | Justinba1010 at gmail dot com | Date: | Sat, 22 Jan 2011 02:59:01 +0000 |
| Subject: | note 101997 added to control-structures.if | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175992@lists.php.net to get a copy of this message | ||
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
----
Server IP: 64.71.164.2
Probable Submitter: 67.81.37.147
----
Manual Page -- http://www.php.net/manual/en/control-structures.if.php
Edit -- https://master.php.net/note/edit/101997
Del: integrated -- https://master.php.net/note/delete/101997/integrated
Del: useless -- https://master.php.net/note/delete/101997/useless
Del: bad code -- https://master.php.net/note/delete/101997/bad+code
Del: spam -- https://master.php.net/note/delete/101997/spam
Del: non-english -- https://master.php.net/note/delete/101997/non-english
Del: in docs -- https://master.php.net/note/delete/101997/in+docs
Del: other reasons-- https://master.php.net/note/delete/101997
Reject -- https://master.php.net/note/reject/101997
Search -- https://master.php.net/manage/user-notes.php