problem $_GET


#1

my coding in User.php
$strname =Trim($_POST[‘Username’]);

in profile.php i code:
$strUsrName =$_GET[‘name’];

when i echo $strUsrName it displayed ‘$strUsrName’. Suppose it display username. why it happened. can somebody help me?


#2

You need some <?php and ?> tags in there. In user.php, something like this would work, either:

<?php $strname = trim($_POST['Username']); echo ""; ?>

OR:

<?php $strname = trim($_POST['Username']); ?>