error-undefined variables and also unable to fetch the values into url.
Thank you.
Code: Select all
<!DOCTYPE html>
<html>
<body>
<form action="" method="post">
number:<input name="number" type="text" value="7989212020">
op:<input name="op" type="text" value="4">
amount:<input name"amount" type="number" value="100">
</form>
<?php
$number=$_REQUEST['number'];
$op=$_REQUEST['op'];
$amount=$_REQUEST['amount'];
?>
<div><a href="http://api.rechapi.com/recharge.php?format=text&token=&mobile=<?php echo $number;?>&amount=<?php echo $amount;?>&opid=<?php echo $op;?>&urid=12345"><input type="button" name="button" value="RECHARGE"></a></div>
</body>
</html>