Hi Friends i am unable to understand where is problem in this
please take a look if anyone can fix error
Demo here not working http://zullmi.hosterspoint.com/converter.php
please take a look if anyone can fix error
<html>
<head>
<title> PHP currecny Convertor</title>
</head><body>
<form align=’center’ action=’convertor.php’ method=’post’>
Enter Amount:<input type=’text’ name=’amount’>
From:<select name=’cur1′>
<option>Dollar</option>
<option>Pound</option>
</select>
To:<select name=’cur2′>
<option>Indian</option>
<option>PKR</option>
<option>Afghani</option>
</select>
<input type=’submit’ name=’submit’ value=’Convert Now’>
</form>
<?php
if(isset($_POST[‘submit’])){
$amount = $_POST[‘amount’];
$cur1 = $_POST[‘cur1′];
$cur2 = $_POST[‘cur2′];
if($cur1==â€Dollar†AND $cur2==â€PKRâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*97.5 . “</center>â€;
}
if($cur1==â€Dollar†AND $cur2==â€Indianâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*48 . “</center>â€;
}
if($cur1==â€Dollar†AND $cur2==â€Afghaniâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*54 . “</center>â€;
}
if($cur1==â€Pound†AND $cur2==â€PKRâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*160 . “</center>â€;
}
if($cur1==â€Pound†AND $cur2==â€Indianâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*120 . “</center>â€;
}
if($cur1==â€Pound†AND $cur2==â€Afghaniâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*100 . “</center>â€;
}
}
?>
</body>
</html>
<head>
<title> PHP currecny Convertor</title>
</head><body>
<form align=’center’ action=’convertor.php’ method=’post’>
Enter Amount:<input type=’text’ name=’amount’>
From:<select name=’cur1′>
<option>Dollar</option>
<option>Pound</option>
</select>
To:<select name=’cur2′>
<option>Indian</option>
<option>PKR</option>
<option>Afghani</option>
</select>
<input type=’submit’ name=’submit’ value=’Convert Now’>
</form>
<?php
if(isset($_POST[‘submit’])){
$amount = $_POST[‘amount’];
$cur1 = $_POST[‘cur1′];
$cur2 = $_POST[‘cur2′];
if($cur1==â€Dollar†AND $cur2==â€PKRâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*97.5 . “</center>â€;
}
if($cur1==â€Dollar†AND $cur2==â€Indianâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*48 . “</center>â€;
}
if($cur1==â€Dollar†AND $cur2==â€Afghaniâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*54 . “</center>â€;
}
if($cur1==â€Pound†AND $cur2==â€PKRâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*160 . “</center>â€;
}
if($cur1==â€Pound†AND $cur2==â€Indianâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*120 . “</center>â€;
}
if($cur1==â€Pound†AND $cur2==â€Afghaniâ€){
echo “<center><b>Your Converted Amount is:</b><br></center>â€;
echo “<center>†. $amount*100 . “</center>â€;
}
}
?>
</body>
</html>
Comment