hi all
i want to fetch “ord” from
http://localhost/repair_mobile_form/?ord=403
in php i have code
<?
$order_id=$_REQUEST['ord'];
if(isset($_REQUEST['submit']))
{
echo "<script language='javascript'>";
echo "var url = window.location.href.toString()";
echo "\
";
echo "var id = url.match(/\\?ord=(\\d+)/)";
echo "\
";
echo "window.location='http://localhost/repair_mobile_review/' + id";
echo "</script>";
}
?>
but this code redirects the url to
http://localhost/repair_mobile_review/?ord=403,403
why am i getting two repeating id’s in url
vineet