0
<?php
//link maklumat terperinci daerah

$daerah_ejen=str_replace(" ", "+", $daerah_ejen);
$detail_name_link = '<a onmouseover="Tip(\'Klik untuk lihat maklumat terperinci\')" onmouseout="UnTip()" href=laporan_kk_detail.php?daerah_ejen='.$daerah_ejen.'&kumpulan_ejen ='.$kumpulan_ejen.'>'.number_format($jumlah, 0, '.', ',').'</a>';
?>

WHY my passing variable for $kumpulan_ejen not appear in url.. I got /laporan_kk_detail.php?daerah_ejen=SABAK+BERNAM&kumpulan_ejen *variable for kumpulan_ejen no passing to other page.

2
  • how to you show your passing value in next page? Commented Apr 2, 2014 at 6:13
  • make sure it is not already empty $kumpulan_ejen Commented Apr 2, 2014 at 6:13

3 Answers 3

1

Replace with this code

$detail_name_link = '<a onmouseover="Tip(\'Klik untuk lihat maklumat terperinci\')" onmouseout="UnTip()" href="laporan_kk_detail.php?daerah_ejen='.$daerah_ejen.'&kumpulan_ejen ='.$kumpulan_ejen.'">'.number_format($jumlah, 0, '.', ',').'</a>';
Sign up to request clarification or add additional context in comments.

Comments

0

href=laporan_kk_detail.php?daerah_ejen=

put " after the href= like this href="YOURURLHERE"

Comments

0

You have to put "" for href attribute.

href="laporan_kk_detail.php?daerah_ejen='.$daerah_ejen.'&kumpulan_ejen ='.$kumpulan_ejen.'" >'.number_format($jumlah, 0, '.', ',').'</a>';

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.