Nasıl bir php sayfasındaki bir linki yürütebilirsiniz

0 Cevap

Ben bir dnm.php sayfa var

Bu sayfada, bir url var. i bu url (burada veritabanı güncellemesi yapıyor) yürütmek gerekiyor. Bu benim kodudur

<?php
$username ='testUsername';
if($_GET['age']!=''){
header('location:www.test.com/update.php?age='.$_GET['age'].'&username='.$username); //need to updatethe age of this username
 $show ='hello';
}
?>
<!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=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<?php echo $show ?>
</body>
</html>

ben bu kod sadece o bağlantıyı yürütmek gerekiyor SAYFA.I yönlendirmek istediğiniz bağışta bulunan kimse ben iyi bir way.I yazabilirsiniz properly.How işe gitmiyor biliyorum

0 Cevap