hello
i have a payment page that each radio button specifies a payment method and when choosing each radio button after clicking on submit each one should be redirect to a specific url for payment.i read some posts about it but non of them worked.please someone help me and tell me which code can help me and where should i put it?
this is full page code :
<?php
session_start();
include_once("include/session.php");
include_once("include/membership.php");
if(!is_login())
{
header("Location: /index.php");
}
if(isset($_SESSION["payment_process_error"]))
{
$error_amount = $_SESSION["payment_process_error"]["amount"];
$error_payment = $_SESSION["payment_process_error"]["payment"];
unset($_SESSION["payment_process_error"]);
}
$user_data = load_user($_SESSION["username"]);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Invest</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="wrapper">
<div id="header"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="964" height="190" id="menu" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="flash/menu.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#e0e0e0" /> <embed src="flash/menu.swf" quality="high" bgcolor="#e0e0e0" width="980" height="190" name="menu" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></div>
<div id="contant">

<h1> <br /><br /> Welcome <?php echo $user_data["fullname"] ?>! ( <a href="#"><i><?php echo $_SESSION["username"] ?></i></a> ) <a href="/logout.php"><span style="float:right; color:#dc1515; padding-right:10px; text-decoration:underline; cursorointer;">Logout</span></a></h1>
<h2>Please specify the amount of money you would like to deposit</h2>
<form action="payment_process.php" method="post">
<h2>
<span
<?php
if(isset($error_amount) && $error_amount == 1)
echo "style='color:red'";
?>
>
( Minimum amount is 10$ ) $ </span>
<input type="text" name="amount" class="text_box_new" />
USD</h2>


<h2><span
<?php
if(isset($error_payment) && $error_payment == 1)
echo "style='color:red'";
?>
>
Please choose a payment method</span></h2>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" colspan="10">&nbsp;</td>
</tr>
<tr>
<td width="8%" align="left">&nbsp;</td>
<td width="3%" align="left">
<input type="radio" name="payment" id="radio" value="lr" /> </td>
<td width="15%" align="left"><img src="images/img_14.png" alt="" /></td>
<td width="7%" align="left">&nbsp;</td>
<td width="3%" align="left"><input type="radio" name="payment" id="radio" value="pm" /></td>
<td width="32%" align="left"><img src="images/img_15.png" alt="" /></td>
<td width="3%" align="left">&nbsp;</td>
<td width="2%" align="left"><input type="radio" name="payment" id="radio" value="cc" /></td>
<td width="25%" align="left"><img src="images/img_16.png" alt="" /></td>
<td width="2%" align="left">&nbsp;</td>
</tr>
<tr>
<td height="20" colspan="10">&nbsp;</td>
</tr>

</table>

<input style="background:url(images/next.png);width:78px;cursorointer;border:0px;height:32px;float:right;padding-bottom:15px;" type="submit" name="payment_process" value="" />
</form>
<br class="clear" />
</div>
</div><br />
<br />

<div id="footer"><div id="footer_contant"><h1>SRS-Invest (c) 2010 All Rights Reserved. | <a href="policy.html">Privacy policy</a></h1></div></div>
</body>
</html>

actually i am going to edit the original page that redirects the page on "pm" value of one of radio buttons to payment_process.i want to redirrect other values of radio buttons mean "lr" and "cc" to seperate pages also.
thanks